Module: elements-sk/dialog-sk

dialog-sk

A custom elment that creates a dialog centered in the window. Pressing the ESC key will cause the dialog to close.

Events
Name Description
closed This event is generated when the dialog is closed.
Attributes
Name Description
shown A boolean attribute that is present when the dialog is shown. and absent when it is hidden.
Source:
Example
<dialog-sk id=dialog>
  <p>This is a dialog.</p>
  <button onclick="this.parentElement.shown = false;">Close</button>
</dialog-sk>

Members

shown

Properties:
Name Type Description
shown boolean Mirrors the shown attribute.
Source: