0.3.5 • Published 9 years ago
overlay-component v0.3.5
Overlay
Page overlay component.
Installation
$ component install component/overlay
API
overlay(options|element)
Returns a new Overlay
.
Options:
closable
: whether or not a user may click the overlay to close falsetarget
: target element to overlay body
Overlay#show()
Show the overlay.
Overlay#hide()
Hide the overlay.
Events
show
when the overlay is shownhide
when the overlay is hiddenclose
when the overlay is removed (follows hide normally)
License
MIT