dialog.Dialog Class
Basic dialog class and base class for all other dialogs
Item Index
Methods
Attributes
Events
Methods
showCentered
()
Show window centered on screen
Returns:
Attributes
autoDispose
Boolean
optional
Auto dispose/erase component on close
Default: true
Fires event autoDisposeChange
Fires when the value for the configuration attribute autoDispose
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:
autoHideOnBtnClick
Boolean
optional
Auto hide component on button click. If autoDispose is set to true, the component will be deleted
Default: true
Fires event autoHideOnBtnClickChange
Fires when the value for the configuration attribute autoHideOnBtnClick
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:
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:
modal
Boolean
optional
Show modal version of dialog
Default: true
Fires event modalChange
Fires when the value for the configuration attribute modal
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: