开发者

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

开发者 https://www.devze.com 2023-01-28 06:36 出处:网络
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'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消