mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Hide nav bar if you like.
This commit is contained in:
@ -5,9 +5,19 @@
|
||||
this.el = opts.el;
|
||||
|
||||
this._titleEl = this.el.querySelector('.title');
|
||||
|
||||
if(opts.hidden) {
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
|
||||
ionic.views.NavBar.prototype = {
|
||||
hide: function() {
|
||||
this.el.classList.add('hidden');
|
||||
},
|
||||
show: function() {
|
||||
this.el.classList.remove('hidden');
|
||||
},
|
||||
shouldGoBack: function() {},
|
||||
|
||||
setTitle: function(title) {
|
||||
|
||||
Reference in New Issue
Block a user