mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
docs(NavController): remove members from NavCtrl docs
This commit is contained in:
@ -133,11 +133,21 @@ export class NavController extends Ion {
|
|||||||
*/
|
*/
|
||||||
sbGesture: any;
|
sbGesture: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
parent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
config: Config;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
public parent: any,
|
parent: any,
|
||||||
public app: IonicApp,
|
protected _app: IonicApp,
|
||||||
public config: Config,
|
config: Config,
|
||||||
public keyboard: Keyboard,
|
protected _keyboard: Keyboard,
|
||||||
elementRef: ElementRef,
|
elementRef: ElementRef,
|
||||||
protected _anchorName: string,
|
protected _anchorName: string,
|
||||||
protected _compiler: Compiler,
|
protected _compiler: Compiler,
|
||||||
@ -147,6 +157,9 @@ export class NavController extends Ion {
|
|||||||
) {
|
) {
|
||||||
super(elementRef);
|
super(elementRef);
|
||||||
|
|
||||||
|
this.parent = parent;
|
||||||
|
this.config = config;
|
||||||
|
|
||||||
this._trnsDelay = config.get('pageTransitionDelay');
|
this._trnsDelay = config.get('pageTransitionDelay');
|
||||||
|
|
||||||
this._sbEnabled = config.get('swipeBackEnabled') || false;
|
this._sbEnabled = config.get('swipeBackEnabled') || false;
|
||||||
@ -1031,7 +1044,7 @@ export class NavController extends Ion {
|
|||||||
let enableApp = (duration < 64);
|
let enableApp = (duration < 64);
|
||||||
// block any clicks during the transition and provide a
|
// block any clicks during the transition and provide a
|
||||||
// fallback to remove the clickblock if something goes wrong
|
// fallback to remove the clickblock if something goes wrong
|
||||||
this.app.setEnabled(enableApp, duration);
|
this._app.setEnabled(enableApp, duration);
|
||||||
this.setTransitioning(!enableApp, duration);
|
this.setTransitioning(!enableApp, duration);
|
||||||
|
|
||||||
if (enteringView.viewType) {
|
if (enteringView.viewType) {
|
||||||
@ -1072,11 +1085,11 @@ export class NavController extends Ion {
|
|||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.keyboardClose !== false && this.keyboard.isOpen()) {
|
if (opts.keyboardClose !== false && this._keyboard.isOpen()) {
|
||||||
// the keyboard is still open!
|
// the keyboard is still open!
|
||||||
// no problem, let's just close for them
|
// no problem, let's just close for them
|
||||||
this.keyboard.close();
|
this._keyboard.close();
|
||||||
this.keyboard.onClose(() => {
|
this._keyboard.onClose(() => {
|
||||||
|
|
||||||
// keyboard has finished closing, transition complete
|
// keyboard has finished closing, transition complete
|
||||||
done();
|
done();
|
||||||
@ -1129,7 +1142,7 @@ export class NavController extends Ion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// allow clicks and enable the app again
|
// allow clicks and enable the app again
|
||||||
this.app && this.app.setEnabled(true);
|
this._app && this._app.setEnabled(true);
|
||||||
this.setTransitioning(false);
|
this.setTransitioning(false);
|
||||||
|
|
||||||
if (this.router && direction !== null) {
|
if (this.router && direction !== null) {
|
||||||
@ -1252,12 +1265,12 @@ export class NavController extends Ion {
|
|||||||
*/
|
*/
|
||||||
swipeBackStart() {
|
swipeBackStart() {
|
||||||
return;
|
return;
|
||||||
if (!this.app.isEnabled() || !this.canSwipeBack()) {
|
if (!this._app.isEnabled() || !this.canSwipeBack()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// disables the app during the transition
|
// disables the app during the transition
|
||||||
this.app.setEnabled(false);
|
this._app.setEnabled(false);
|
||||||
this.setTransitioning(true);
|
this.setTransitioning(true);
|
||||||
|
|
||||||
// default the direction to "back"
|
// default the direction to "back"
|
||||||
@ -1300,7 +1313,7 @@ export class NavController extends Ion {
|
|||||||
return;
|
return;
|
||||||
if (this._sbTrans) {
|
if (this._sbTrans) {
|
||||||
// continue to disable the app while actively dragging
|
// continue to disable the app while actively dragging
|
||||||
this.app.setEnabled(false, 4000);
|
this._app.setEnabled(false, 4000);
|
||||||
this.setTransitioning(true, 4000);
|
this.setTransitioning(true, 4000);
|
||||||
|
|
||||||
// set the transition animation's progress
|
// set the transition animation's progress
|
||||||
@ -1316,7 +1329,7 @@ export class NavController extends Ion {
|
|||||||
if (!this._sbTrans) return;
|
if (!this._sbTrans) return;
|
||||||
|
|
||||||
// disables the app during the transition
|
// disables the app during the transition
|
||||||
this.app.setEnabled(false);
|
this._app.setEnabled(false);
|
||||||
this.setTransitioning(true);
|
this.setTransitioning(true);
|
||||||
|
|
||||||
this._sbTrans.progressEnd(completeSwipeBack, rate).then(() => {
|
this._sbTrans.progressEnd(completeSwipeBack, rate).then(() => {
|
||||||
|
Reference in New Issue
Block a user