I need the reference to a tab created in a TabSet.
I was calling myTabSet.addTab( {title:“My Title”, pane:myLayout} );
but addTab() is a void() function and so doesn’t return a reference to the tab it creates.
Then I tried isc.Tab.create({title:“My Title”, pane:myLayout} );
but Tab isn’t a defined class.
I don’t see a TabSet.getTabCount() or TabSet.getTab(index) to get the last tab added.
I guess I’ll retrieve TabSet.tabs array and take it from there.
Hi tgochenour,
Different presentations of the TabSet use different SmartClient components to represent tabs (including not necessarily using an individual component per tab). Hence we’ve taken the approach of providing indirect setters for commonly updated properties (like setTabTitle()).
What are you trying to do to the live Tab?
Remember it so I can return to it when I close one of the detail tabs.
It appears that addTab() does return a reference to the tab after all. Perhaps the documentation is wrong.
Better to do this by hanging onto the tab’s index or ID, which selectTab() accepts.
SmartClient’s documentation reflects the behaviors for which future versions of SmartClient will have backwards compatibility. Although it’s easy to discover undocumented features, it’s not necessarily a good idea to use them 