Dialog #
Fenêtre modale native avec API Invoker Commands — dialog
<button commandfor="dialog-demo" command="show-modal">Ouvrir la boîte de dialogue</button>
<dialog id="dialog-demo" closedby="any">
<p>Cette action est irréversible. Êtes-vous sûr de vouloir continuer ?</p>
<div data-layout="cluster">
<button commandfor="dialog-demo" command="close">Confirmer</button>
<button commandfor="dialog-demo" command="close">Annuler</button>
</div>
</dialog>
<button commandfor="dialog-form-demo" command="show-modal">Ouvrir le formulaire</button>
<dialog id="dialog-form-demo" closedby="any">
<form method="dialog">
<p>Fermer cette boîte de dialogue ?</p>
<button value="cancel">Fermer</button>
</form>
</dialog>