This demonstrates how to dynamically add tabs to a TabView widget.
Dynamically adding tabs to a YUI TabView widget is done with the
We will create a
demo and include the TabView markup:
Next, create an instance of TabView from our
For this example, a simple prompt will accept the new tab label and content. We will need a function to accept the input, create, and add the new tab:
Note: Logging and debugging is currently turned off for this example.
All YUI 2.x users should review the YUI 2.8.2 security bulletin, which discusses a vulnerability present in YUI 2.4.0-2.8.1.