Non-blocking HTML5 dialogs. Features prompt, confirmation, information and multiple choice dialogs.
npm install simple-dialogs
Check out the live demo and its source code.
- Include
SimpleDialogs.jsin your page. - Call
new SimpleDialogs.PromptDialog(promptLabel, promptOptions, callback); - Handle result in the callback function
See index.d.ts for the full API and arguments.
- Make sure you have a recent version of Node.js installed.
- Clone the repository from
https://github.com/sparklinlabs/simple-dialogsand runnpm installonce - Run
npm run buildto build once ornpm run watchto start a watcher that will rebuild when changes are detecting