Skip to content

pantoken / formats/interactions/src / initModal

Feidhm: initModal()

initModal(host, dialog, onCommand): void

Sreangáil <dialog class="instui-modal"> CSS nó scáth chomhpháirt gréasáin <dialog> chuig an bprótacal tréith open agus --show/--close/--toggle riartha ordaithe. Pasann an dá úsáid an comhéadan céanna:

  • CSS: host === dialog (the dialog itself carries the id and open attr)
  • WC: host = custom element, dialog = its shadow &lt;dialog&gt;

Paraiméadair

host

HTMLElement

dialog

HTMLDialogElement

onCommand

OnCommand

Tuairisceáin

void