mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 14:19:17 +08:00
Moved hacking tests to test folder, got rid of ionic=window.ionic for wrapper functions in JS files.
26 lines
496 B
JavaScript
26 lines
496 B
JavaScript
(function(ionic) {
|
|
|
|
ionic.views = ionic.views || {};
|
|
|
|
ionic.views.SideMenu = function(opts) {
|
|
this.el = opts.el;
|
|
this.width = opts.width;
|
|
this.isEnabled = opts.isEnabled || true;
|
|
};
|
|
|
|
ionic.views.SideMenu.prototype = {
|
|
getFullWidth: function() {
|
|
return this.width;
|
|
},
|
|
setIsEnabled: function(isEnabled) {
|
|
this.isEnabled = isEnabled;
|
|
},
|
|
bringUp: function() {
|
|
this.el.style.zIndex = 0;
|
|
},
|
|
pushDown: function() {
|
|
this.el.style.zIndex = -1;
|
|
}
|
|
};
|
|
})(window.ionic);
|