mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
tabs navbar wip
This commit is contained in:
@ -11,7 +11,7 @@ import {bind} from 'angular2/di';
|
||||
|
||||
import {NavController} from './nav-controller';
|
||||
import {NavItem, NavParams} from './nav-item';
|
||||
import {Pane, NavBarSection} from './pane';
|
||||
import {Pane, NavBarContainer} from './pane';
|
||||
import {Transition} from '../../transitions/transition';
|
||||
import {ClickBlock} from '../../util/click-block';
|
||||
import * as util from 'ionic/util';
|
||||
@ -80,7 +80,7 @@ export class NavBase {
|
||||
// decide which sections should be added to this Pane, ie: nav bars, tab bars, etc.
|
||||
// add only the sections it needs
|
||||
if (itemStructure.navbar) {
|
||||
sectionsToAdd.push(NavBarSection);
|
||||
sectionsToAdd.push(NavBarContainer);
|
||||
}
|
||||
|
||||
// add the sections which this type of Pane requires
|
||||
@ -476,6 +476,18 @@ export class NavBase {
|
||||
return this.domElement;
|
||||
}
|
||||
|
||||
navbarViewContainer(nbContainer) {
|
||||
if (nbContainer) {
|
||||
this._nbContainer = nbContainer;
|
||||
}
|
||||
if (this._nbContainer) {
|
||||
return this._nbContainer;
|
||||
}
|
||||
if (this.parent) {
|
||||
return this.parent.navbarViewContainer();
|
||||
}
|
||||
}
|
||||
|
||||
add(item) {
|
||||
item.id = this.id + '' + (++this.childIds);
|
||||
this.items.push(item);
|
||||
|
Reference in New Issue
Block a user