Files
ionic-framework/js/views/sideMenu.js
Max Lynch 37d708b05e Tests organization and cleanup
Moved hacking tests to test folder, got rid of ionic=window.ionic for
wrapper functions in JS files.
2013-09-24 17:22:36 -05:00

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);