gui.appendTabContainerItem

Prototype

  1. hTabItem = gui.appendTabContainerItem ( hComponent, sText, hComponent )

Parameters

hComponent -
sText -
hComponent -


Return values

hTabItem - handle to the new tab item


Sample

  1. function onMainViewInit ( hView, hComponent )
  2.  
  3. --create All category
  4. local hTabCategory = gui.getComponent ( "CategoryTab" )
  5. if ( hTabCategory ) then
  6. local hItem = gui.instantiate ( "com.shiva.editor.log.lib", "CategoryTemplate", "CategoryTab0" )
  7. if ( hItem ) then
  8. gui.appendTabContainerItem ( hTabCategory, "All", hItem )
  9. -- etc.

Available since ShiVa 2.0