linb.UI.Layout

Direct Super Classes

linb.Base

linb.iBox

linb.iDataBinder

linb.UI

linb.UI.iList

linb.UI.iWidget

Events

afterCreated (profile)
Fired after component is created. At this time, component object has not been attached to DOM.
profile: UIProfile. See profile name.

afterRendered (profile)
Fired after component is rendered in DOM. At this time, component object has been attached to DOM.
profile: UIProfile. See profile name.

beforeDestroy (profile)
Fired before component is destroyed.
profile: UIProfile. See profile name.

beforeValueUpdated (profile, oldValue, newValue, showValue)
Fired before value is updated. See Sigma Linb component value model.
profile: UIProfile. See profile name.
oldValue: Boolean. Value before setting.
newValue: Boolean. Value after setting.
showValue: Boolean. Presentation value.

onDragEnter (profile, e, node, key, data, item)
Fired when end user drags something into this component.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Item which accepts object dragged.

onDragLeave (profile, e, node, key, data, item)
Fired when end user drags something out of this component.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Item which accepts object dragged.

onDrop (profile, e, node, key, data, item)
Fired when end user drop something into this component.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Item which accepts object dragged.

onDropMarkClear (profile, e, node, key, data, item)
Fired before this component darkles itself when end user drop something out of this component. Developer can change the default way of highlighting in this event handler. If false returned, default highlighting behavior will be cancelled.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Item which accepts object dragged.

onDropMarkShow (profile, e, node, key, data, item)
Fired before this component highlights itself when end user drop something into this component. Developer can change the default way of highlighting in this event handler. If false returned, default highlighting behavior will be cancelled.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Item which accepts object dragged.

onDropTest (profile, e, node, key, data, item)
Fired when component determine whether object dragged is acceptable. If true returned, object can be accepted. If false returned, object will be denied.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Item which accepts object dragged.

onHotKeydown (profile, key, control, shift, alt, e, src)
Fired when key is down.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onHotKeypress (profile, key, control, shift, alt, e, src)
Fired when key is pressed.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onHotKeyup (profile, key, control, shift, alt, e, src)
Fired when key is up.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

Instance Methods

attach ( ui, id )
Attach another ui control to itself.
ui: ui object.
id: string. Id of parts which another ui object is attached to.

empty ( )
To clear content of itsself.

getDropKeys ( )
To get keys for indentity with which as dragging key something can be droped into it.
returns: String. Combination of Indentity key string array, separated by colon. Example - "iDesign:iAny".

getPanel ( id )
To get children panel by id.
id: String. Panel id.
returns: Panel UI object.

getType ( )
Get lay out type.
returns: string. Lay out type. Could be "horizontal", "vertical".

setItems ( v )
Specify how control is laid out.
v: Objects array. example - {"id":"before","pos":"before","locked":false,"size":200,"min":50,"max":400,"cmd":true,"hide":false}

setType ( value, flag )
Set lay out type.
value: string. Lay out type. Could be "horizontal", "vertical".