Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A javascript plugin for creating dialog, implements with HTMLDialogElement.

License

Notifications You must be signed in to change notification settings

OneupNetwork/dialogify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

100 Commits

Repository files navigation

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

About

A javascript plugin for creating dialog, implements with HTMLDialogElement.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5

AltStyle によって変換されたページ (->オリジナル) /