Modal Layout
Modal your way
Install
Via NPM
npm i modal-layout --save
Via Bower
bower install modal-layout --save
Usage
var m = 'Awesome stuff!'; m;m
Api
ModalLayout(content [, opts])
Parameters
content
HTMLElement
or string
.
opts
Options | Default | Description |
---|---|---|
esc | true |
close modal pressing esc |
beforeOpen | null |
call a method before open modal |
prefix | 'modalLayout' |
prefix used in your css |
escape | false |
escape content html |
Methods
Methods | Description |
---|---|
open | show modal |
close | hide modal |
destroy | destroy modal |
isOpen | check if modal is opened |
Events
Events |
---|
open |
close |
destroy |
License
MIT © Thiago Lagden