Skip to content
On this page

Dialog API

js
const dialog = document.querySelector('awc-dialog');

Methods

open

Whether the dialog is open or not.

js
dialog.open;

show

Shows the dialog.

js
dialog.show();

hide

Hides the dialog and dispatches the awc-dialog:hidden event.

js
dialog.hide();

hideWithoutEmitting

Hides the dialog and does not dispatch any events.

js
dialog.hideWithoutEmitting();

Events

NameBubblesDescription
awc-dialog:hiddentrueThis event fires immediately when the dialog is hidden.

Released under the MIT License.