upgraded to yui 0.12.0
upgraded to yui-ext 0.33 rc2
This commit is contained in:
parent
62b3d90db7
commit
cfd09a5cb6
1271 changed files with 539033 additions and 0 deletions
33
www/extras/yui-ext/examples/tabs/tabs-example.js
vendored
Normal file
33
www/extras/yui-ext/examples/tabs/tabs-example.js
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
var TabsExample = {
|
||||
init : function(){
|
||||
// basic tabs 1, built from existing content
|
||||
var tabs = new YAHOO.ext.TabPanel('tabs1');
|
||||
tabs.addTab('script', "View Script");
|
||||
tabs.addTab('markup', "View Markup");
|
||||
tabs.activate('script');
|
||||
|
||||
// second tabs built from JS
|
||||
var jtabs = new YAHOO.ext.TabPanel('jtabs');
|
||||
jtabs.addTab('jtabs-1', "Normal Tab", "My content was added during construction.");
|
||||
|
||||
var tab2 = jtabs.addTab('jtabs-2', "Ajax Tab 1");
|
||||
var updater = tab2.getUpdateManager();
|
||||
updater.setDefaultUrl('ajax1.htm');
|
||||
tab2.onActivate.subscribe(updater.refresh, updater, true);
|
||||
|
||||
var tab3 = jtabs.addTab('jtabs-3', "Ajax Tab 2");
|
||||
tab3.setUrl('ajax2.htm', null, true);
|
||||
|
||||
var tab4 = jtabs.addTab('jtabs-4', "Event Tab");
|
||||
tab4.setContent("I am tab 4's content. My content was set with setContent() after I was created. I also have an event listener attached.");
|
||||
tab4.onActivate.subscribe(function(){
|
||||
alert('Tab 4 was activated.');
|
||||
});
|
||||
|
||||
jtabs.addTab('tabs1-5', "Disabled Tab", "Can't see me cause I'm disabled");
|
||||
jtabs.disableTab('tabs1-5');
|
||||
|
||||
jtabs.activate('jtabs-1');
|
||||
}
|
||||
}
|
||||
YAHOO.ext.EventManager.onDocumentReady(TabsExample.init, TabsExample, true);
|
||||
Loading…
Add table
Add a link
Reference in a new issue