Window Class
Class for floating window
Constructor
Window
-
config
Parameters:
-
config
Object
Example:
new ludo.Window({
width:500,height:500,
left:100,top:100,
layout:'cols',
children:[{
layout:{
weight:1
},
html : 'Panel 1'
},{
layout:{
weight:1
},
html: 'Panel 2'
}]
});
Item Index
Methods
Methods
showCentered
()
Show window centered on screen
Returns:
Attributes
height
Number
Height of window
Default: 200
Fires event heightChange
Fires when the value for the configuration attribute height
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
hideBodyOnMove
Boolean
Hide content of window while moving/dragging the window
Default: false
Fires event hideBodyOnMoveChange
Fires when the value for the configuration attribute hideBodyOnMove
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
left
Number
Left position of window
Default: undefined
Fires event leftChange
Fires when the value for the configuration attribute left
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
movable
Boolean
True to make the window movable
Default: true
Fires event movableChange
Fires when the value for the configuration attribute movable
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
preserveAspectRatio
Boolean
Preserve aspect ratio when resizing
Default: false
Fires event preserveAspectRatioChange
Fires when the value for the configuration attribute preserveAspectRatio
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
resizeLeft
Boolean
When set to true, resize handle will be added to the left ludo of the window. This can be useful to turn off when you're extending the ludo.Window component to create custom components where left position should be fixed.
Default: true
Fires event resizeLeftChange
Fires when the value for the configuration attribute resizeLeft
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
resizeTop
Boolean
When set to true, resize handle will be added to the top ludo of the window. This can be useful to turn off when you're extending the ludo.Window component to create custom components where top position should be fixed.
Default: true
Fires event resizeTopChange
Fires when the value for the configuration attribute resizeTop
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
top
Number
Top position of window
Default: undefined
Fires event topChange
Fires when the value for the configuration attribute top
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
width
Number
Width of window
Default: 300
Fires event widthChange
Fires when the value for the configuration attribute width
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added: