jizy-modalizer
v3.0.5
Published
Modal layer manager for web applications. It provides a simple API to manage modal dialogs, including opening, closing, and customizing modals.
Maintainers
Readme
jizy-modalizer
Modal layer manager for web applications. It provides a simple API to manage modal dialogs, including opening, closing, and customizing modals.
Installation
npm install jizy-modalizerFeatures
- Multiple modal layers
- Customizable content, header, footer, and close button
- Keyboard and accessibility support
- Easy API for showing/hiding modals
Useful methods
It is easy to interact with the Modalizer manager programmatically. Here are some useful methods:
Modalizer.show(layer): add a new modal layerModalizer.hide(): hide the current modal layer and return to the previous one or close the modalizer if no more layersModalizer.addLayer(layer): add a new modal layer (optionally replacing the current one)Modalizer.replaceLayer(layer): same asaddLayerbut always replaces the current layerModalizer.LayerDomData(element): Retrieve layer config from a DOM element
