A javascript plugin for creating dialog, implements with HTMLDialogElement.
new Dialogify('dialog content') .title('dialog title') .buttons([{type:Dialogify.BUTTON_PRIMARY}]) .showModal(); // alternate alert, confirm and prompt (async function() { await Dialogify.alert('Alert!!'); if (await Dialogify.confirm('Yes or no?')) { // blah.. } const answer = await Dialogify.prompt('Question?'); // if (answer == blah...) })();
https://oneupnetwork.github.io/dialogify/
All modern browser
- Fork & clone this repo
npm install npm run build - Create branch and commit your changes
- Open a pull request
Feel free to contribute
MIT