A Container that animates and coordinates the sliding of Tabelements.
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>
tabelement
For details on how this component is constructed, see the Tab Slider section of the Component Design Guide.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| bordercolor | Tag & JS | color | Number | setter | |
|
The border color. Default is constrained to the
|
|||||
|
|
|||||
| bordersize | Tag & JS | expression | any | 1 | setter |
|
The size of the border. Default is 1 pixel. |
|||||
|
|
|||||
doesenter, enabled, hasdefault, isdefault, style, styleable, text
changed, ignoreform, onchanged, onvalue, rollbackvalue, submit, submitname
dataoption, defaultselection, itemclassname, multiselect, toggleselected
inset_bottom, inset_left, inset_right, inset_top, mintabheight, slideduration, spacing
class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes
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
| 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. |
|
|
||
doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault
applyData, commit, findForm, init, rollback, setChanged, setValue, toXML, updateData
clearSelection, getItem, getItemAt, getNumItems, getSelection, getText, getValue, moveSelection, removeItem, removeItemAt, selectItem, selectItemAt, selectNext, selectPrev, setHilite
addItem, calcAvailableHeight, doAddSubview, openNext, openTab, select, setHeight
animate, applyConstraint, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption
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 |
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
Copyright © 2002-2005 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.