开发者

What function event should i use when to define when the seleted tab has changed?

I am using dijit.layout.TabContainer , i didnt find in the documentation an event like "onTabCh开发者_JAVA百科ange" I want to indentify when a tab is seleted and which tab is selected. How can i achieve this? thnak you


There appears to be a selectChild event.

dojo.subscribe("myId-selectChild", function(child){
    console.log("A new child was selected:", child);
});

or

var tabs = dijit.byId("myId");

dojo.connect(tabs,"selectChild",function(child){
    console.log("called anytime selectChild is");
});

More info at http://docs.dojocampus.org/dijit/layout/TabContainer

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜