class

Dialog

@Js
class Dialog : Box

Dialog manages a modal window above page content.

See also: docDomkit

constructors make

fields title

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

methods onKeyDown

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

onClose

Callback when popup is closed

onOpen

Callback when dialog is opened

onBeforeOpen

Protected sub-class callback invoked directly before dialog is opened

close

Close this dialog

open

Open this dialog in the current Window

onAfterOpen

Protected sub-class callback invoked directly after dialog is opened

close Void close()

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

make new make()

onAfterOpen virtual Void onAfterOpen()

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

onBeforeOpen virtual Void onBeforeOpen()

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

onClose Void onClose(|This| f)

Callback when popup is closed.

onKeyDown Void onKeyDown(|Event| f)

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

onOpen Void onOpen(|This| f)

Callback when dialog is opened.

open Void open()

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

title Obj? : title

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

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST