| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,11 @@ | |||
| 1 | 1 | import * as application from "tns-core-modules/application"; | |
| 2 | 2 | // trace.addCategories(trace.categories.All); | |
| 3 | - // application.run({ moduleName: "page.1" }); | ||
| 4 | - // application.run({ moduleName: "main-page" }); | ||
| 3 | + // application.run({ moduleName: "modaltest/page.1" }); | ||
| 4 | + // application.run({ moduleName: "modaltest/main-page" }); | ||
| 5 | 5 | ||
| 6 | - application.run({ moduleName: "modal-tab" }); | ||
| 7 | - // application.run({ moduleName: "textview" }); | ||
| 6 | + application.run({ moduleName: "modaltest/modal-tab" }); | ||
| 7 | + // application.run({ moduleName: "modaltest/textview" }); | ||
| 8 | 8 | ||
| 9 | - // application.start({ moduleName: "modal-tab.33" }); | ||
| 10 | - // application.run({ moduleName: "modal-frame" }); | ||
| 11 | - // application.start({ moduleName: "page.2" }); | ||
| 9 | + // application.start({ moduleName: "modaltest/modal-tab.33" }); | ||
| 10 | + // application.run({ moduleName: modaltest/modal-frame" }); | ||
| 11 | + // application.start({ moduleName: "modaltest/page.2" }); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,17 +7,17 @@ export function onNavigatingTo(args: EventData) { | |||
| 7 | 7 | ||
| 8 | 8 | export function navigate(args: EventData) { | |
| 9 | 9 | console.log("navigate"); | |
| 10 | - (args.object as View).page.frame.navigate("page.1"); | ||
| 10 | + (args.object as View).page.frame.navigate("modaltest/page.1"); | ||
| 11 | 11 | } | |
| 12 | 12 | ||
| 13 | 13 | export function onModalTab(args: EventData) { | |
| 14 | 14 | const view = args.object as View; | |
| 15 | - view.showModal("modal-tab", "context", closeModal, false); | ||
| 15 | + view.showModal("modaltest/modal-tab", "context", closeModal, false); | ||
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | export function onModalFrame(args: EventData) { | |
| 19 | 19 | const view = args.object as View; | |
| 20 | - view.showModal("modal-frame", "context", closeModal, false); | ||
| 20 | + view.showModal("modaltest/modal-frame", "context", closeModal, false); | ||
| 21 | 21 | } | |
| 22 | 22 | ||
| 23 | 23 | export function onTap3(args: EventData) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - <Page backgroundColor="pink" codeFile='~/page.2' actionBarHidden="true"> | ||
| 1 | + <Page backgroundColor="pink" codeFile='~/modaltest/page.2' actionBarHidden="true"> | ||
| 2 | 2 | <Frame> | |
| 3 | 3 | <Page backgroundColor="purple"> | |
| 4 | 4 | <ActionBar title=" AAA "> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - <Frame codeFile='~/page.2'> | ||
| 1 | + <Frame codeFile='~/modaltest/page.2'> | ||
| 2 | 2 | <Page backgroundColor="pink"> | |
| 3 | 3 | <ActionBar title="{{ $value, 'Page ' + $value }} "> | |
| 4 | 4 | <ActionItem text="close" tap="closeModal" ios.position='right' /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | <Page backgroundColor="blue" actionBarHidden="true" loaded="pageLoaded" | |
| 2 | - codeFile='~/modal-tab'> | ||
| 2 | + codeFile='~/modaltest/modal-tab'> | ||
| 3 | 3 | <ActionBar title="Frame in Modal Page"> | |
| 4 | 4 | <ActionItem text="close" tap="closeModal" /> | |
| 5 | 5 | </ActionBar> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ export function onTap(args) { | |||
| 22 | 22 | const view = args.object as View; | |
| 23 | 23 | const page = view.page; | |
| 24 | 24 | let context = page.bindingContext || 0; | |
| 25 | - page.frame.navigate({ moduleName: "page.2", bindingContext: ++context, transition: { name: "fade", duration: 1000 } }); | ||
| 25 | + page.frame.navigate({ moduleName: "modaltest/page.2", bindingContext: ++context, transition: { name: "fade", duration: 1000 } }); | ||
| 26 | 26 | } | |
| 27 | 27 | ||
| 28 | 28 | export function tenGoBacks(args) { | |
@@ -33,7 +33,7 @@ export function tenGoBacks(args) { | |||
| 33 | 33 | let context = page.bindingContext || 0; | |
| 34 | 34 | let x = 4; | |
| 35 | 35 | while (x--) { | |
| 36 | - frame.navigate({ moduleName: "page.2", bindingContext: ++context, transition: { name: "fade", duration: 1000 } }); | ||
| 36 | + frame.navigate({ moduleName: "modaltest/page.2", bindingContext: ++context, transition: { name: "fade", duration: 1000 } }); | ||
| 37 | 37 | } | |
| 38 | 38 | ||
| 39 | 39 | x = 4; | |
@@ -50,17 +50,17 @@ export function navigateToFrame(args: EventData) { | |||
| 50 | 50 | const view = args.object as View; | |
| 51 | 51 | const page = view.page; | |
| 52 | 52 | const frame = page.frame; | |
| 53 | - frame.navigate("modal-frame"); | ||
| 53 | + frame.navigate("modaltest/modal-frame"); | ||
| 54 | 54 | } | |
| 55 | 55 | ||
| 56 | 56 | export function navigateToPageWithFrame(args: EventData) { | |
| 57 | 57 | const view = args.object as View; | |
| 58 | 58 | const page = view.page; | |
| 59 | 59 | const frame = page.frame; | |
| 60 | - frame.navigate("modal-frame.1"); | ||
| 60 | + frame.navigate("modaltest/modal-frame.1"); | ||
| 61 | 61 | } | |
| 62 | 62 | ||
| 63 | 63 | export function onModalFrame(args: EventData) { | |
| 64 | 64 | const view = args.object as View; | |
| 65 | - view.showModal("modal-frame", "some context", closeModal, false); | ||
| 65 | + view.showModal("modaltest/modal-frame", "some context", undefined, false); | ||
| 66 | 66 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ export function onTap(args: EventData) { | |||
| 17 | 17 | const view = args.object as View; | |
| 18 | 18 | const page = view.page; | |
| 19 | 19 | let context = page.bindingContext || 0; | |
| 20 | - page.frame.navigate({ moduleName: "page.2", bindingContext: ++context, transition: { name: "fade", duration: 1000 } }); | ||
| 20 | + page.frame.navigate({ moduleName: "modaltest/page.2", bindingContext: ++context, transition: { name: "fade", duration: 1000 } }); | ||
| 21 | 21 | } | |
| 22 | 22 | ||
| 23 | 23 | export function onBack(args: EventData) { | |
@@ -32,7 +32,7 @@ export function closeModal(args: EventData) { | |||
| 32 | 32 | ||
| 33 | 33 | let modalContext = 0; | |
| 34 | 34 | export function showModal(args: EventData) { | |
| 35 | - (args.object as View).showModal("page.2", ++modalContext, function () { | ||
| 35 | + (args.object as View).showModal("modaltest/page.2", ++modalContext, function () { | ||
| 36 | 36 | console.log("Closed Modal: " + (args.object as View).bindingContext); | |
| 37 | 37 | }); | |
| 38 | 38 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | <Page backgroundColor="pink" showingModally="showingModally"> | |
| 2 | - <ActionBar title="{{ $value }} "> | ||
| 2 | + <ActionBar title="{{ $value + ' page' }} "> | ||
| 3 | 3 | <ActionItem text="close" tap="closeModal" ios.position='right' /> | |
| 4 | 4 | </ActionBar> | |
| 5 | 5 | <StackLayout backgroundColor="orange"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "tns-samples-apps", | |
| 3 | - "main": "ui-tests-app/app.js" | ||
| 3 | + "main": "modaltest/app.js" | ||
| 4 | 4 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments