RasterTabbar.add( icon, text [, containerId [, value]] )

Adds a tab item to this Tabbar.

Parameters

Name Type   Description
icon string String containing path of a 16x16 image file or an object that implements the IID_SPRITEINFO interface such as the constants in the ICONS16 object. Set to null if no icon is desired.
text string Text shown in the tab; set to null for is no text is needed.
containerId string optional The id of an existing element which css display is set to "block" when the tab is selected, and "none" when the tab is blured.
value any optional Placeholder for an user-defined value to be associated with this tab. User can access this value later in the Tab's click event handler.

Returns

Type Description
object A reference to the RasterTabItem object just added.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López