Files
NativeScript/e2e/ui-tests-app/app/action-bar/modal-test-with-action-bar-page.ts
2019-06-26 15:13:48 +03:00

16 lines
502 B
TypeScript

import { EventData } from "tns-core-modules/data/observable";
import { Page } from "tns-core-modules/ui/page";
import { topmost } from "tns-core-modules/ui/frame";
export function btnClick(args: EventData) {
(<Page>args.object).page.showModal("action-bar/modal-page-hidden-action-bar-page", {
context: "",
closeCallback: (arg: string) => console.log("Callback args: " + arg),
fullscreen: true
});
}
export function btnBack(args: EventData) {
topmost().goBack();
}