-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.js
33 lines (23 loc) · 874 Bytes
/
dialog.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(function (window, $, Voltron) {
'use strict';
// set prototype to base component and assign
// Dialog constructor to the constructor prototype
Dialog.prototype = new Voltron({});
Dialog.prototype.constructor = Dialog;
// constructor
function Dialog (options) {
Voltron.call(this, options);
return this;
}
// defaults, e.g., width and height
Dialog.prototype.defaults = {};
// event listeners; this is processed by Voltron.prototype.bind
Dialog.prototype.events = {};
// process template for injection into DOM
Dialog.prototype.render = function () {};
// makes dialog visible in the UI
Dialog.prototype.show = function () {};
// makes dialog invisible in the UI
Dialog.prototype.hide = function () {};
window.Dialog = window.Dialog || Dialog;
})(window, jQuery, Voltron);