Package Exports
- ractive-modal
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 (ractive-modal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ractive-modal
A modal popup component for Ractive
Features
- Lightweight, minified version is < 6kb
- Opens and closes with a data variable
- Exposes Component events - beforeOpen, afterOpen, beforeClose, afterClose
- Scrollable when it's contents exceed screen height
- Closeable by clicking on the upper right "x", the overlay or the esc key
- Stackable - Multiple modal popups on top of each other
- Ability to set initial focus on an element when the popup opens, just set the autofocus attribute on an element inside the modal
- Focus management trapps keyboard focus - navigation inside the dialog
- Ability to have unclosable modal popups
- Includes default styling, but is customisable with user css
- Render on demand or stay always in DOM with "live" mode
- Ability to append to an element
Click here for documentation and examples https://kouts.github.io/ractive-modal/demo/