<tabsbar>
The lz tabsbar class for laying out tab items.

JavaScript: lz.tabsbar

A tabsbar is a container that uses a default x-axis <simplelayout> with a spacing of -15 to lay out its tab children (which have extra spacing on each side) so they overlap.

This it the default tab bar created by tabpane. This class is dependent on tabs (or any subclass of basetabs) and shouldn't be used by itself. The default layout for its subviews is "class: simplelayout; axis: x; spacing: -15". You can pass the name of this class in the 'barclass' attribute of tabpane, basetabpane, basetabs, and tabs. Tabs uses this class as its default 'barclass'.

<canvas height="100">
  <include href="lz"/>

  <simplelayout axis="x" spacing="10"/>

  <view layout="class: simplelayout; axis: y; spacing: 5" bgcolor="red">
    <text>basetabs barclass=basetabsbar</text>
    <basetabs y="10" tabclass="tab" barclass="basetabsbar">
      <basetabpane text="one">
        <text>one</text>
      </basetabpane>
      <basetabpane text="two">
        <text>two</text>
      </basetabpane>
      <basetabpane text="three">
        <text>three</text>
      </basetabpane>
    </basetabs>
  </view>

  <view layout="class: simplelayout; axis: y; spacing: 5" bgcolor="yellow">
    <text>basetabs barclass=tabsbar</text>
    <basetabs y="10" tabclass="tab" barclass="tabsbar">
      <basetabpane text="one">
        <text>one</text>
      </basetabpane>
      <basetabpane text="two">
        <text>two</text>
      </basetabpane>
      <basetabpane text="three">
        <text>three</text>
      </basetabpane>
    </basetabs>
  </view>
</canvas>

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
spacing number Number 0 read/write
  Spacing between tab items.

Attributes inherited from <basevaluecomponent>

type, value

Methods

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <baselist>

onitemclassname, onselect

Events inherited from <baseformitem>

onchanged, onvalue

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy