MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / close

Method close

apps/toolbox/src/pages/root-layout.ts:99–109  ·  view source on GitHub ↗
(args: EventData)

Source from the content-addressed store, hash-verified

97 }
98
99 close(args: EventData): void {
100 if (this.popupViews[(<any>args.object).popupIndex]?.extra?.customExitAnimation) {
101 getRootLayout()
102 .close(this.popupViews[(<any>args.object).popupIndex].view, this.popupViews[(<any>args.object).popupIndex].extra.customExitAnimation)
103 .catch((ex) => console.error(ex));
104 } else {
105 getRootLayout()
106 .close(this.popupViews[(<any>args.object).popupIndex].view)
107 .catch((ex) => console.error(ex));
108 }
109 }
110
111 getPopup(color: string, size: number, offset: number): View {
112 const layout = new StackLayout();

Callers

nothing calls this directly

Calls 2

getRootLayoutFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected