Skip to content

Commit 1ef880b

Browse files
author
vakrilov
committed
Descriptions fixed and navigation methods mad private
1 parent fe66104 commit 1ef880b

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

ui/page/page.d.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare module "ui/page" {
1414
//@endprivate
1515

1616
/**
17-
* Defines the data for the page navivation events.
17+
* Defines the data for the page navigation events.
1818
*/
1919
export interface NavigatedData extends observable.EventData {
2020
/**
@@ -105,29 +105,6 @@ declare module "ui/page" {
105105
*/
106106
optionsMenu: OptionsMenu;
107107

108-
/**
109-
* A method called before navigating to the page.
110-
* @param context - The data passed to the page through the NavigationEntry.context property.
111-
*/
112-
onNavigatingTo(context: any): void;
113-
114-
/**
115-
* A method called after navigated to the page.
116-
* @param context - The data passed to the page through the NavigationEntry.context property.
117-
*/
118-
onNavigatedTo(): void;
119-
120-
/**
121-
* A method called before navigating from the page.
122-
*/
123-
onNavigatingFrom(): void;
124-
125-
/**
126-
* A method called after navigated from the page.
127-
* @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.
128-
*/
129-
onNavigatedFrom(isBackNavigation: boolean): void;
130-
131108
/**
132109
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
133110
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
@@ -172,6 +149,29 @@ declare module "ui/page" {
172149
_addArrayFromBuilder(name: string, value: Array<any>): void;
173150

174151
//@private
152+
153+
/**
154+
* A method called before navigating to the page.
155+
* @param context - The data passed to the page through the NavigationEntry.context property.
156+
*/
157+
onNavigatingTo(context: any): void;
158+
159+
/**
160+
* A method called after navigated to the page.
161+
*/
162+
onNavigatedTo(): void;
163+
164+
/**
165+
* A method called before navigating from the page.
166+
*/
167+
onNavigatingFrom(): void;
168+
169+
/**
170+
* A method called after navigated from the page.
171+
* @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.
172+
*/
173+
onNavigatedFrom(isBackNavigation: boolean): void;
174+
175175
_getStyleScope(): styleScope.StyleScope;
176176
_invalidateOptionsMenu();
177177
//@endprivate

0 commit comments

Comments
 (0)