File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ function buildEntryFromArgs(arg: any): NavigationEntry {
35
35
36
36
@CSSType ( 'Frame' )
37
37
export class FrameBase extends CustomLayoutView {
38
- public static androidOptionSelectedEvent = 'optionSelected' ;
38
+ public static navigatingToEvent = 'navigatingTo' ;
39
+ public static navigatedToEvent = 'navigatedTo' ;
39
40
40
41
private _animated : boolean ;
41
42
private _transition : NavigationTransition ;
@@ -267,7 +268,7 @@ export class FrameBase extends CustomLayoutView {
267
268
268
269
newPage . onNavigatedTo ( isBack ) ;
269
270
this . notify ( {
270
- eventName : Page . navigatedToEvent ,
271
+ eventName : FrameBase . navigatedToEvent ,
271
272
object : this ,
272
273
isBack,
273
274
entry,
@@ -452,7 +453,7 @@ export class FrameBase extends CustomLayoutView {
452
453
453
454
backstackEntry . resolvedPage . onNavigatingTo ( backstackEntry . entry . context , isBack , backstackEntry . entry . bindingContext ) ;
454
455
this . notify ( {
455
- eventName : Page . navigatingToEvent ,
456
+ eventName : FrameBase . navigatingToEvent ,
456
457
object : this ,
457
458
isBack,
458
459
entry : backstackEntry ,
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ export interface NavigationData extends EventData {
17
17
* Nested frames are supported, enabling hierarchical navigation scenarios.
18
18
*/
19
19
export class Frame extends FrameBase {
20
+ /**
21
+ * String value used when hooking to navigatingTo event.
22
+ */
23
+ public static readonly navigatingToEvent = 'navigatingTo' ;
24
+
25
+ /**
26
+ * String value used when hooking to navigatedTo event.
27
+ */
28
+ public static readonly navigatedToEvent = 'navigatedTo' ;
29
+
20
30
/**
21
31
* @private
22
32
*/
You can’t perform that action at this time.
0 commit comments