mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
16 lines
482 B
TypeScript
16 lines
482 B
TypeScript
import { View, ShowModalOptions } from "tns-core-modules/ui/core/view";
|
|
const LIVESYNC_FOLDER = "livesync/";
|
|
const buttonPageModuleName = `${LIVESYNC_FOLDER}livesync-button-page`;
|
|
|
|
export function onLoaded(args) {
|
|
const view = args.object as View;
|
|
|
|
let options: ShowModalOptions = {
|
|
context: "context",
|
|
closeCallback: () => console.log("modal view closeCallback raised."),
|
|
animated: false
|
|
};
|
|
|
|
view.showModal(buttonPageModuleName, options);
|
|
}
|