reverselayout
is just like <simplelayout>
,
except that the order of the views it keeps is reversed (bottom to top, or right to left).
reverselayout
extends <layout>
, and therefore it is responsible
for arranging all of the subviews for the view that it is attached to. The attributes of a view that reverselayout
effects are the x
and y
values.
Example 71. Example of reverselayout
<canvas
height
="60
">
<include
href
="utils/layouts/reverselayout.lzx
"/>
<view
bgcolor
="yellow
">
<reverselayout
axis
="x
" spacing
="10
"/>
<text
text
="one
"/>
<text
text
="two
"/>
<text
text
="three
"/>
</view
>
</canvas
>
Example 72. Example of reverselayout with end='false'
<canvas
height
="60
">
<include
href
="utils/layouts/reverselayout.lzx
"/>
<view
bgcolor
="yellow
">
<reverselayout
axis
="x
" end
="false
" spacing
="10
"/>
<text
text
="one
"/>
<text
text
="two
"/>
<text
text
="three
"/>
</view
>
</canvas
>
Name (CSS property) | Type (tag) | Type (js) | Default | Category |
---|---|---|---|---|
axis
|
string | String | y | read/write |
The axis in which this layout operates. One of 'x' or 'y'. | ||||
end
|
expression | any | true | read/write |
When true (the default), then the layout will push the subviews to the right (or bottom) of the containing view | ||||
inset
|
expression | any | 0 | read/write |
A pixel amount to inset the last view controlled by the layout | ||||
spacing
|
expression | any | 0 | read/write |
A pixel amount to use between each view in the layout |
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
addSubview, ignore, lock, releaseLayout, removeSubview, reset, setLayoutOrder, swapSubviewOrder, unlock, update
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Events
Copyright © 2002-2010 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.