mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
docs(tabs): updated docs
This commit is contained in:
@ -124,9 +124,14 @@ export class Tabs extends Ion {
|
|||||||
*/
|
*/
|
||||||
@ViewChildren(TabButton) private _btns;
|
@ViewChildren(TabButton) private _btns;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
parent:any
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@Optional() viewCtrl: ViewController,
|
@Optional() viewCtrl: ViewController,
|
||||||
@Optional() public parent: NavController,
|
parent: any,
|
||||||
private _app: IonicApp,
|
private _app: IonicApp,
|
||||||
private _config: Config,
|
private _config: Config,
|
||||||
private _elementRef: ElementRef,
|
private _elementRef: ElementRef,
|
||||||
@ -134,7 +139,7 @@ export class Tabs extends Ion {
|
|||||||
private _renderer: Renderer
|
private _renderer: Renderer
|
||||||
) {
|
) {
|
||||||
super(_elementRef);
|
super(_elementRef);
|
||||||
|
this.parent = parent;
|
||||||
this.id = ++tabIds;
|
this.id = ++tabIds;
|
||||||
this.subPages = _config.getBoolean('tabSubPages');
|
this.subPages = _config.getBoolean('tabSubPages');
|
||||||
this._useHighlight = _config.getBoolean('tabbarHighlight');
|
this._useHighlight = _config.getBoolean('tabbarHighlight');
|
||||||
@ -172,6 +177,9 @@ export class Tabs extends Ion {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
ngAfterContentInit() {
|
ngAfterContentInit() {
|
||||||
let selectedIndex = this.selectedIndex ? parseInt(this.selectedIndex, 10) : 0;
|
let selectedIndex = this.selectedIndex ? parseInt(this.selectedIndex, 10) : 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user