@oneup_network/dialogify

1.0.6 • Public • Published

Dialogify

A javascript plugin for creating dialog, implements with HTMLDialogElement.

Basic usage

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...)
})();

basic dialogify

Usage and examples

https://oneupnetwork.github.io/dialogify/

Dependencies

Browser compatibility

All modern browser

Designed by

Phoebe

Contribute

  • Fork & clone this repo
    npm install
    npm run build
    
  • Create branch and commit your changes
  • Open a pull request

Feel free to contribute

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @oneup_network/dialogify

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

110 kB

Total Files

5

Last publish

Collaborators

  • rex2003
  • porksteak
  • josephwu
  • mazer