File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ import {ViewController} from '../nav/view-controller';
36
36
* the `duration` of the loading options. By default the loading indicator
37
37
* will show even during page changes, but this can be disabled by setting
38
38
* `dismissOnPageChange` to `true`. To dismiss the loading indicator after
39
- * creation, call the `dismiss()` method on the Loading instance.
39
+ * creation, call the `dismiss()` method on the Loading instance. The
40
+ * `onDismiss` function can be called to perform an action after the loading
41
+ * indicator is dismissed.
40
42
*
41
43
* ### Limitations
42
44
* The element is styled to appear on top of other content by setting its
@@ -71,6 +73,10 @@ import {ViewController} from '../nav/view-controller';
71
73
* duration: 5000
72
74
* });
73
75
*
76
+ * loading.onDismiss(() => {
77
+ * console.log('Dismissed loading');
78
+ * });
79
+ *
74
80
* this.nav.present(loading);
75
81
* }
76
82
*
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ class E2EPage {
13
13
duration : 1000
14
14
} ) ;
15
15
16
+ loading . onDismiss ( ( ) => {
17
+ console . log ( 'Dismissed loading' ) ;
18
+ } ) ;
19
+
16
20
this . nav . present ( loading ) ;
17
21
}
18
22
You can’t perform that action at this time.
0 commit comments