Dojo dijit.layout.TabContainer - how to add class to tab?
问题 Ho to add class to the tab in TabContainer? Only thing I've found is set iconClass. However I need to add class to the parent div in tab. Not to some nested divs inside it. 回答1: Not a simple way, but I got access to the tab button in the tabcontainer object. var tabContainer = ...; dojo.addClass(tabContainer.tablist.pane2button["123"].domNode, "myTabClass"); http://jsfiddle.net/cswing/N2hsG/ 回答2: Building on Craig's suggestion, here's the modern way of doing it: // assuming there is only one