Files
ionic-framework/js/views/sideMenuView.js
Max Lynch 6ab1f49688 Fixed #64 and fixed sub view controllers and tabs
Moved tabs to be absolute not fixed so they can easily
be placed inside of containers
2013-11-08 18:09:48 -06:00

26 lines
523 B
JavaScript

(function(ionic) {
'use strict';
ionic.views.SideMenu = ionic.views.View.inherit({
initialize: function(opts) {
this.el = opts.el;
this.width = opts.width;
this.isEnabled = opts.isEnabled || true;
},
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;
}
});
})(ionic);