<dialog-open-button>

When pressed, will open a <dialog-box>.

Parameters

  • default

Attributes

  • dialog (required):a CSS selector (AKA jQuery selector) to locate the dialog in the DOM. Remember, if you’re passing an ID, place a ‘#’ in front of the ID.
  • supports all button attributes

Example

<dialog id="hello-dialog">Hello!</dialog>
<dialog-open-button dialog="#hello-dialog">Press Me!</dialog-open-button>

Show Source


Edit this page