mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
docs(app): documented setEnabled, setScrollDisabled methods
documented setEnabled, setScrollDisabled methods
This commit is contained in:
@ -93,12 +93,11 @@ export class App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
|
||||||
* Sets if the app is currently enabled or not, meaning if it's
|
* Sets if the app is currently enabled or not, meaning if it's
|
||||||
* available to accept new user commands. For example, this is set to `false`
|
* available to accept new user commands. For example, this is set to `false`
|
||||||
* while views transition, a modal slides up, an action-sheet
|
* while views transition, a modal slides up, an action-sheet
|
||||||
* slides up, etc. After the transition completes it is set back to `true`.
|
* slides up, etc. After the transition completes it is set back to `true`.
|
||||||
* @param {boolean} isEnabled
|
* @param {boolean} isEnabled `true` for enabled, `false` for disabled
|
||||||
* @param {number} duration When `isEnabled` is set to `false`, this argument
|
* @param {number} duration When `isEnabled` is set to `false`, this argument
|
||||||
* is used to set the maximum number of milliseconds that app will wait until
|
* is used to set the maximum number of milliseconds that app will wait until
|
||||||
* it will automatically enable the app again. It's basically a fallback incase
|
* it will automatically enable the app again. It's basically a fallback incase
|
||||||
@ -120,7 +119,9 @@ export class App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* Toggles whether an application can be scrolled
|
||||||
|
* @param {boolean} disableScroll when set to `false`, the application's
|
||||||
|
* scrolling is enabled. When set to `true`, scrolling is disabled.
|
||||||
*/
|
*/
|
||||||
setScrollDisabled(disableScroll: boolean) {
|
setScrollDisabled(disableScroll: boolean) {
|
||||||
let enabled = this._config.get('canDisableScroll', true);
|
let enabled = this._config.get('canDisableScroll', true);
|
||||||
|
Reference in New Issue
Block a user