Dialog
A flexible javascript popup dialog.

dialog.open({
title: 'Dialog Title',
source: 'Body content can be (HTML, CSS selector, DOM element, or URL)',
}).then(...);
Features
- Easy to use.
- Lazy loading (3kb initial page load).
- Usable as a webpack/ES6 module or a pre-built browser bundle.
- Handles multiple programming scenarios and content sources.
- Simple HTML structure and easy custom styling using CSS3 variables.
- Dialogs can be 'modal', and/or can be layered on top of each other.
- Implements the 'Promise' interface, allowing sequential notifications.
Demo
Try me
Installation
Dialog is a javascript package built for and using the ES6 module system, but it's also provided as a pre-built, minified browser package (in this package's "dist" folder).
Browser
1. Download & copy this package's "dist" folder into your web server's public folder eg. ``public/js/dist/*`.
2. Rename "dist" to "dialog" eg. `public/js/dialog`
3. Load the dialog script at the end of your web page (before the closing body tag) like this:
`
...