type

Dialog

src @Js
class Dialog : Box

Dialog manages a modal window above page content.

See also: docDomkit

constructors

fields

title

Str or Elem content displayed in title bar, or null to hide title bar.

methods

close

Close this dialog.

onAfterOpen

Protected sub-class callback invoked directly after dialog is opened.

onBeforeOpen

Protected sub-class callback invoked directly before dialog is opened.

onClose

Callback when popup is closed.

onKeyDown

Callback when a key is pressed while Dialog is open, including events that where dispatched outside the dialog.

onOpen

Callback when dialog is opened.

open

Open this dialog in the current Window.

Slot Details

close

src Void close()

Close this dialog. If dialog is already closed this method does nothing.

make

src new make()

onAfterOpen

src protected virtual Void onAfterOpen()

Protected sub-class callback invoked directly after dialog is opened.

onBeforeOpen

src protected virtual Void onBeforeOpen()

Protected sub-class callback invoked directly before dialog is opened.

onClose

src Void onClose(|This| f)

Callback when popup is closed.

onKeyDown

src protected Void onKeyDown(|Event| f)

Callback when a key is pressed while Dialog is open, including events that where dispatched outside the dialog.

onOpen

src Void onOpen(|This| f)

Callback when dialog is opened.

open

src Void open()

Open this dialog in the current Window. If dialog is already open this method does nothing.

title

src Obj? title := null

Str or Elem content displayed in title bar, or null to hide title bar.