mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
13 lines
433 B
TypeScript
13 lines
433 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("ui-tests-app/action-bar/modal-page-hidden-action-bar", "", function (arg: string) {
|
|
// ...
|
|
}, true);
|
|
}
|
|
|
|
export function btnBack(args: EventData) {
|
|
topmost().goBack();
|
|
} |