mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Started header bar view
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
(function(ionic) {
|
||||
|
||||
ionic.views.HeaderBar = function(opts) {
|
||||
this.el = opts.el;
|
||||
|
||||
this._titleEl = this.el.querySelector('.title');
|
||||
};
|
||||
|
||||
ionic.views.NavBar.prototype = {
|
||||
resizeTitle: function() {
|
||||
var e,
|
||||
children = this.el.children,
|
||||
index = Array.prototype.indexOf.call(children, this.el);
|
||||
|
||||
for(var i = 0; i < index; i++) {
|
||||
e = children[i];
|
||||
}
|
||||
}
|
||||
};
|
||||
})(window.ionic);
|
||||
|
||||
Reference in New Issue
Block a user