mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
docs(loading): add some docs on the onDismiss function
This commit is contained in:
@ -36,7 +36,9 @@ import {ViewController} from '../nav/view-controller';
|
|||||||
* the `duration` of the loading options. By default the loading indicator
|
* the `duration` of the loading options. By default the loading indicator
|
||||||
* will show even during page changes, but this can be disabled by setting
|
* will show even during page changes, but this can be disabled by setting
|
||||||
* `dismissOnPageChange` to `true`. To dismiss the loading indicator after
|
* `dismissOnPageChange` to `true`. To dismiss the loading indicator after
|
||||||
* creation, call the `dismiss()` method on the Loading instance.
|
* creation, call the `dismiss()` method on the Loading instance. The
|
||||||
|
* `onDismiss` function can be called to perform an action after the loading
|
||||||
|
* indicator is dismissed.
|
||||||
*
|
*
|
||||||
* ### Limitations
|
* ### Limitations
|
||||||
* The element is styled to appear on top of other content by setting its
|
* The element is styled to appear on top of other content by setting its
|
||||||
@ -71,6 +73,10 @@ import {ViewController} from '../nav/view-controller';
|
|||||||
* duration: 5000
|
* duration: 5000
|
||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
|
* loading.onDismiss(() => {
|
||||||
|
* console.log('Dismissed loading');
|
||||||
|
* });
|
||||||
|
*
|
||||||
* this.nav.present(loading);
|
* this.nav.present(loading);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
|
@ -13,6 +13,10 @@ class E2EPage {
|
|||||||
duration: 1000
|
duration: 1000
|
||||||
});
|
});
|
||||||
|
|
||||||
|
loading.onDismiss(() => {
|
||||||
|
console.log('Dismissed loading');
|
||||||
|
});
|
||||||
|
|
||||||
this.nav.present(loading);
|
this.nav.present(loading);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user