gui.getTabContainerItemCount
Counts the items in a tab container.
Prototype
nCount = gui.getTabContainerItemCount ( hComponent )
Parameters
hComponent - valid GUI component handle
Return values
nCount - number 0..n
Sample
function onLogUpdateTabs ( ) local hTabCategory = gui.getComponent ( "CategoryTab" ) if ( hTabCategory ) then gui.setTabContainerTabsVisible ( hTabCategory, gui.getTabContainerItemCount ( hTabCategory ) > 1 ) end end
Available since ShiVa 2.0