mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
14 lines
379 B
TypeScript
14 lines
379 B
TypeScript
import { EventData, Frame, Page } from '@nativescript/core';
|
|
|
|
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) {
|
|
Frame.topmost().goBack();
|
|
}
|