Name
basetabelement — Base class for the contents of a basetabslider.
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.
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}" />
The height of the tabelement. Default is minheight.
-
hideonclose
-
<attribute name="hideonclose" value="true" />
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()
-
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" />
Sent at the end of the open animation.
LZX Synopsis
<class name="
basetabelement" extends="
baselistitem
">
<attribute name="
headerheight
" type="
number" value="
$once{minheight}" />
<attribute name="
height
" value="
$once{minheight}" />
<attribute name="
minheight
" type="
number" value="
22" />
</class>
JavaScript Synopsis
public
basetabelement extends
baselistitem
{
prototype public function
closed
();
prototype public function
openned
();
prototype public function
setSelected
(
isSelected : boolean);
}