2.0.0 • Published 7 months ago
@pirxpilot/overlay v2.0.0
Overlay
Page overlay component.
Installation
$ component install component/overlayAPI
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
showwhen the overlay is shownhidewhen the overlay is hiddenclosewhen the overlay is removed (follows hide normally)
License
MIT