d-md-components
Version:
A pack of components for Derby according to Google's Material Design based upon mdl (getmdl.io).
22 lines (18 loc) • 465 B
JavaScript
var Overlay = require('./../index');
/**
* Emits a 'click' event. May hide the overlay, if specified in options
*/
Overlay.prototype.click = function () {
this.emit('click');
this._maybeHide();
};
/**
* Shows the overlay
* Emits the 'show' and 'shown' events
*/
Overlay.prototype.show = Overlay.prototype._show;
/**
* Hides the overlay.
* Emits the 'hide' and 'hidden' events
*/
Overlay.prototype.hide = Overlay.prototype._hide;