https://github.com/sparklinlabs/simple-dialogs
Non-blocking HTML5 dialogs
https://github.com/sparklinlabs/simple-dialogs
Last synced: 2 months ago
JSON representation
Non-blocking HTML5 dialogs
- Host: GitHub
- URL: https://github.com/sparklinlabs/simple-dialogs
- Owner: sparklinlabs
- License: isc
- Created: 2016-01-28T11:24:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T02:36:52.000Z (over 4 years ago)
- Last Synced: 2025-04-17T20:39:52.515Z (2 months ago)
- Language: TypeScript
- Homepage: http://sparklinlabs.github.io/simple-dialogs/
- Size: 213 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# simple-dialogs
Non-blocking HTML5 dialogs.
Features prompt, confirmation, information and multiple choice dialogs.## How to install
npm install simple-dialogs
## Usage
Check out the [live demo](http://sparklinlabs.github.io/simple-dialogs/) and its [source code](https://github.com/sparklinlabs/simple-dialogs/blob/master/src/index.jade).
* Include `SimpleDialogs.js` in your page.
* Call `new SimpleDialogs.PromptDialog(promptLabel, promptOptions, callback);`
* Handle result in the callback functionSee [index.d.ts](https://github.com/sparklinlabs/simple-dialogs/blob/master/index.d.ts) for the full API and arguments.
## Building from source
* Make sure you have a recent version of [Node.js](http://nodejs.org/) installed.
* Clone the repository from `https://github.com/sparklinlabs/simple-dialogs` and run `npm install` once
* Run `npm run build` to build once or `npm run watch` to start a watcher that will rebuild when changes are detecting