JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q40990F
  • License ISC

Non-blocking HTML5 dialogs

Package Exports

  • simple-dialogs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-dialogs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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 and its source code.

  • Include SimpleDialogs.js in 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.

Building from source

  • Make sure you have a recent version of Node.js 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