简体   繁体   中英

How can I select a tab from the YUI TabView without clicking it based on URL arguments

I'm using the YUI TabView tab system.

I want to be able to select a certain tab from this TabView without having to click it. I want it to automatically open based on arguments I'll pass via URL.

I need to know what YUI event to call to make this happen.

Thanks!

You should be able to set the tab using the 'set' method:

myTabs.set("activeTab", tabInstance);

where myTabs is the tabset, and tabInstance is the tab you are going to make active.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM