This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Closed
Description
Feature Request
Create a new dialog and open it with JS
Proposed solution
For example:
const dialog = new Dialog({
title: "...",
body: "...",
actions: {
confirm: {
title: "OK",
icon: "..."
},
cancel: {
title: "Cancel",
},
...,
position: "right"
},
...
});
dialog.open()
While the open
method already exists, building a dialog from JS is missing and can be useful when receiving a request response and you want to output it in a beautiful dialog, instead that ugly JS alert window.
Alternatives considered
Building a JS wrapper