layout.Base Class
Base class for ludoJS layouts
Item Index
Methods
Attributes
Events
Methods
addChild
-
child
-
insertAt
-
pos
Method executed when adding new child view to a layout
Parameters:
-
child
ludo.View -
insertAt
ludo.View -
pos
String
clearTemporaryValues
-
child
Clear temporary width or height values. This method is executed when a child is shown or maximized
Parameters:
-
child
ludo.View
getParentForNewChild
()
protected
Return parent DOM element for new child
hideChild
-
child
Executed when a child is hidden. It set's the internal layout properties width and height to 0(zero)
Parameters:
-
child
ludo.View
minimize
-
child
-
newSize
Executed when a child is minimized. It set's temporary width or properties
Parameters:
-
child
ludo.View -
newSize
Object
onNewChild
()
private
Implementation in sub classes
setTemporarySize
-
child
-
newSize
Store temporary size when a child is minimized or hidden
Parameters:
-
child
ludo.View -
newSize
Object
updateViewport
-
c
Update viewport properties, coordinates of DHTML Container for child views, i.e. body of parent view
Parameters:
-
c
Object
Attributes
renderer
Function
A function returning css class for current row as string. Current record will be passed to function
Default: undefined
Events
addChild
Event fired by layout manager when a new child is added
Event Payload:
-
child
ludo.View -
layout
ludo.layout.Basemanager