You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework the frame api to support working with multiple Frames.
* frameModule.topmost() - now returns the last navigated Frame or
the currently selected tab item's Frame if the tab item's view is a
Frame.
* frameModule.getFrameById(id: string) - returns a navigated Frame by id.
* args.object.page.frame - can be used in page elements event handlers.
Returns the Frame of the current element's page.
* chore: Update madge-android npm script path
@@ -170,6 +178,11 @@ export class Frame extends View {
170
178
*/
171
179
exportfunctionsetFragmentClass(clazz: any): void;
172
180
181
+
/**
182
+
* Gets a frame by id.
183
+
*/
184
+
exportfunctiongetFrameById(id: string): Frame;
185
+
173
186
/**
174
187
* Gets the topmost frame in the frames stack. An application will typically has one frame instance. Multiple frames handle nested (hierarchical) navigation scenarios.
175
188
*/
@@ -182,6 +195,7 @@ export function topmost(): Frame;
182
195
exportfunctiongoBack();
183
196
184
197
/**
198
+
* Deprecated. Use getFrameById() if you want to retrieve a frame different than the topmost one.
0 commit comments