class domkit::Popup

sys::Obj
  dom::Elem
    domkit::Popup

@Js

Popup window which can be closed clicking outside of element.

See also: pod doc

close

Void close()

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

halign

Align halign := Align.left

Where to align Popup relative to open(x,y):

  • Align.left: align left edge popup to (x,y)
  • Align.center: center popup with (x,y)
  • Align.right: align right edge of popup to (x,y)
isOpen

Bool isOpen { private set }

Return true if this popup currently open.

make

new make()

onClose

Void onClose(|This| f)

Callback when popup is closed.

onOpen

Void onOpen(|This| f)

Callback when popup is opened.

open

Void open(Int x, Int y)

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