<basetab>
The base tab class.

JavaScript: lz.basetab

This class is to be used only in conjunction with basetabs and basetabapane classes. You can pass the name of this class in the 'tabclass' attribute of basetabpane, tabpane, basetabs, and tabs classes. Basetabs uses this class as its default 'tabclass'.

<canvas height="75">
  <include href="base"/>

  <class name="aquatab" extends="basetab" width="40" height="20" bgcolor="aqua">
    <text>tab</text>
  </class>
  <class name="greentab" extends="basetab" width="40" height="20" bgcolor="green">
    <text>tab</text>
  </class>

  <basetabs x="10" y="10" tabclass="aquatab">
    <basetabpane>
      <text>one</text>
    </basetabpane>
    <basetabpane tabclass="greentab">
      <text>two</text>
    </basetabpane>
    <basetabpane>
      <text>three</text>
    </basetabpane>
  </basetabs>
</canvas>

See Also:

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
tabpane expression any null readonly
  The tabpane associated with this tab.
text text String this.tabpane.text readonly
  The name of this tab. This is constrained to the tabpane's text.

Attributes inherited from <baselistitem>

selected

Attributes inherited from <basevaluecomponent>

type, value

Methods

setSelected()
basetab.setSelected(s : Boolean);
Selects and makes this tab's corresponding tabpane visible.
Parameter Name Type Description
s Boolean true if selected, otherwise false.

Methods inherited from <baselistitem>

setHilite

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <baselistitem>

onselect, onselected

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy