<tabslider>

A Container that animates and coordinates the sliding of Tabelements.

JavaScript: tabslider

Extends Basetabslider

A tabslider coordinates the opening and closing of its tabelement contained within its scope. Only one tabelement can be opened at one time. The height of the opened tabelement is determined by the height of the tabslider minus the total height of all the tabelements when they are closed.

<canvas width="200" height="250">
  <tabslider width="150" x="10" y="10"
             height="200"
             spacing="2" slideduration="300">
    <tabelement text="Tabelement One"/>
    <tabelement text="Tabelement Two"/>
    <tabelement text="Tabelement Three"/>
  </tabslider>
</canvas>

The height of a tabelement (when it is closed) is defined in the tabelement's minheight attribute with a default value of 22. This can also be specified on the tabslider itself using the attribute mintabheight, which will be applied to all of its tabelements.

<canvas width="200" height="250">
  <tabslider width="150" x="10" y="10"
             height="200" mintabheight="40"
             spacing="2" slideduration="300">
    <tabelement text="Tabelement One" minheight="20"/>
    <tabelement text="Tabelement Two"/>
    <tabelement text="Tabelement Three"/>
  </tabslider>
</canvas>
See Also:
Attributes
Name Usage Type (Tag) Type (JS) Default Category
bordercolor Tag & JS color Number   setter
 

The border color. Default is constrained to the <style>'s bordercolor value.


bordersize Tag & JS expression any 1 setter
 

The size of the border. Default is 1 pixel.



Attributes inherited from Basecomponent

doesenter, enabled, hasdefault, isdefault, style, styleable, text

Attributes inherited from Baseformitem

changed, ignoreform, onchanged, onvalue, rollbackvalue, submit, submitname

Attributes inherited from Baselist

dataoption, defaultselection, itemclassname, multiselect, toggleselected

Attributes inherited from Basetabslider

inset_bottom, inset_left, inset_right, inset_top, mintabheight, slideduration, spacing

Attributes inherited from Basevaluecomponent

value

Attributes inherited from Node

class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes

Attributes inherited from View

aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset


Methods

setBorderColor()
tabslider.setBorderColor(color)

Setter for border color.

Parameters
Name Type Desc
color Number the color number.


setBordersize()
tabslider.setBordersize(size)

Setter for border size.

Parameters
Name Type Desc
size Number the size of the border.


Methods inherited from basecomponent

doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault

Methods inherited from baseformitem

applyData, commit, findForm, init, rollback, setChanged, setValue, toXML, updateData

Methods inherited from baselist

clearSelection, getItem, getItemAt, getNumItems, getSelection, getText, getValue, moveSelection, removeItem, removeItemAt, selectItem, selectItemAt, selectNext, selectPrev, setHilite

Methods inherited from basetabslider

addItem, calcAvailableHeight, doAddSubview, openNext, openTab, select, setHeight

Methods inherited from LzNode

animate, applyConstraint, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption

Methods inherited from LzView

addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize


Events

Events inherited from LzNode

onconstruct, ondata, oninit

Events inherited from LzView

onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony