An accessible javascript dialog widget as described at WAI-ARIA 1.0 Authoring Practices - Dialog (Modal) (widget)
meDialog depends on
It also uses Element.matches
, so you need to include a polyfill to support IE (see http://caniuse.com/#feat=matchesselector), which you can find at mePolyfills in the sources-folder.
- Either include all the dependencies yourself and include
me-dialog.min.js
from thedist
folder in your HTML page. - or use one of the standalone bundles
me-dialog.bundle.min.js
orme-dialog.bundle.ie9.min.js
.
You can find the original JavaScript file in the src
folder of this package.
meShowTransition has AMD support. This allows it to be lazy-loaded with an AMD loader, such as RequireJS.
There is a default dialog CSS in the dist
folder.
I still need to write a documentation. In the meantime please see the examples and the source-code for more info.
You can install meDialog using npm or Bower.
$ npm install me-dialog
or
$ bower install me-dialog
meDialog is licenses under the MIT licence.