The tabs class takes tabpanes, and provides a tab for each one.
The tabs component contains a row of
tabs that control the visibility of a stack of
tabpanes. When a tabpane
is added to a tabs component, a corresponding
tab is created for that tabpane. The text which shows up in the tab is
derived from the text attribute of the
tabpane.
The tabs component will be sized
automatically to the largest tabpane, unless an
explicit height or width
is specified within the <tabs> tag.
<canvas width="150" height="100">
<tabs>
<tabpane text="one">
<button>press one</button>
</tabpane>
<tabpane text="two">
<button>press two</button>
</tabpane>
</tabs>
</canvas>
tab, tabsbar, tabpane, tabscontent, and basetabs
For details on how this component is constructed, see the Tabs section of the Component Design Guide.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| tabalign | Tag & JS | string | String | left | setter |
|
Align the set of tabs within the dimensions of the "tabs" container ("left", "center", "right"). Defaults to "left". |
|||||
|
|
|||||
| tabspacing | Tag & JS | number | Number | -15 | setter |
|
Spacing between the tabs. Defaults to -15 so tabs overlap. |
|||||
|
|
|||||
doesenter, enabled, hasdefault, isdefault, style, styleable, text
bar, barclass, bordersize, content, contentclass, inset_bottom, inset_left, inset_right, inset_top, tabclass
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
doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault
animate, applyConstraint, applyData, 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, init, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, 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.