mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
Hide nav bar if you like.
This commit is contained in:
10
dist/ionic.js
vendored
10
dist/ionic.js
vendored
@ -1737,9 +1737,19 @@ window.ionic = {
|
||||
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