Name

basetabelement — Base class for the contents of a basetabslider.

Synopsis

LZX: basetabelement
JavaScript: basetabelement
Type: Class
Access: public
Topic: Components.Base Components
Declared in: lps/components/base/basetabelement.lzx

Description

basetabelement is the base class for the contents of a basetabslider. The basetabelement is focusable if it is closed, and not focusable when it is open.

Basetabelements are children of basetabslider.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baselistitem » basetabelement

Known Subclasses

Known Direct Subclasses: tabelement

Details

Properties (6)

contentvisible
<attribute name="contentvisible" value="$once{! hideonclose}" />
public var contentvisible;
This is set to true when a basetabelement begins to open and is set to false when it finishes its close. Default is the inverse of hideonclose.
headerheight
<attribute name="headerheight" type="number" value="$once{minheight}" />
public var headerheight : Number;
The height of the header. Default is minheight.
height
<attribute name="height" value="$once{minheight}" />
public var height;
The height of the tabelement. Default is minheight.
hideonclose
<attribute name="hideonclose" value="true" />
public var hideonclose;
Content is automatically hidden when tabelement is closed. To override, set this attribute to false. Default is true.
itemclassname
<attribute name="itemclassname" type="string" value="" />
public var itemclassname : String;
When creating tabelements via additem, this is the class that gets created. The default value is the class of the first tabelement or its descendant.
minheight
<attribute name="minheight" type="number" value="22" />
public var minheight : Number;
The height the tab will close to. Default is 22.

Methods (3)

closed()
<method name="closed" />
public function closed();
Called when the tabelement is completely closed.
openned()
<method name="openned" />
public function openned();
Called when the tabelement is completely opened.
setSelected()
<method name="setSelected" args="isSelected" />
public function setSelected(isSelected : boolean);
The selection manager associated with a tabslider sends an onselect event to the tabelement that is being opened or closed.

Events (4)

onclosestart
<attribute name="onclosestart" />
public event onclosestart;
Sent at the start of the close animation.
onclosestop
<attribute name="onclosestop" />
public event onclosestop;
Sent at the start of the close animation.
onopenstart
<attribute name="onopenstart" />
public event onopenstart;
Sent at the start of the open animation.
onopenstop
<attribute name="onopenstop" />
public event onopenstop;
Sent at the end of the open animation.

LZX Synopsis

<class name="basetabelement" extends=" baselistitem ">
  <attribute name=" contentvisible " value="$once{! hideonclose}" />
  <attribute name=" headerheight " type="number" value="$once{minheight}" />
  <attribute name=" height " value="$once{minheight}" />
  <attribute name=" hideonclose " value="true" />
  <attribute name=" itemclassname " type="string" value="" />
  <attribute name=" minheight " type="number" value="22" />
  <method name=" closed " />
  <event name=" onclosestart " />
  <event name=" onclosestop " />
  <event name=" onopenstart " />
  <event name=" onopenstop " />
  <method name=" openned " />
  <method name=" setSelected " args="isSelected" />
</class>

JavaScript Synopsis

public basetabelement extends  baselistitem  {
  public var contentvisible ;
  public var headerheight  : Number;
  public var height ;
  public var hideonclose ;
  public var itemclassname  : String;
  public var minheight  : Number;
  prototype public function closed ();
  prototype public event onclosestart ;
  prototype public event onclosestop ;
  prototype public event onopenstart ;
  prototype public event onopenstop ;
  prototype public function openned ();
  prototype public function setSelected (isSelected : boolean);
}