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

Function onTapSecondModalInCB

apps/ui/src/modal-view/modal-view-page.ts:46–60  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

44}
45
46export function onTapSecondModalInCB(args) {
47 const page = <Page>args.object.page;
48 const label = page.getViewById<Label>('label');
49 page.showModal('modal-view/login-page', {
50 context: 'First',
51 closeCallback: (username: string, password: string) => {
52 const result = 'First/' + username + '/' + password;
53 console.log(result);
54 label.text = result;
55
56 // Open second modal in the close callback of the first one.
57 openModal(page, label, 'Second');
58 },
59 });
60}
61
62export function onTapSecondModalInTimer(args) {
63 const page = <Page>args.object.page;

Callers

nothing calls this directly

Calls 2

openModalFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected