mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 20:00:16 +08:00
4
apps/app/ui-tests-app/issues/issue-2661-second.css
Normal file
4
apps/app/ui-tests-app/issues/issue-2661-second.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ActionBar {
|
||||||
|
color: blue;
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
5
apps/app/ui-tests-app/issues/issue-2661-second.ts
Normal file
5
apps/app/ui-tests-app/issues/issue-2661-second.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { topmost } from "ui/frame";
|
||||||
|
|
||||||
|
export function onTap() {
|
||||||
|
topmost().goBack();
|
||||||
|
}
|
8
apps/app/ui-tests-app/issues/issue-2661-second.xml
Normal file
8
apps/app/ui-tests-app/issues/issue-2661-second.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||||
|
<Page.actionBar>
|
||||||
|
<ActionBar title="blue yellow"/>
|
||||||
|
</Page.actionBar>
|
||||||
|
<StackLayout>
|
||||||
|
<Button text="Back" tap="onTap" />
|
||||||
|
</StackLayout>
|
||||||
|
</Page>
|
4
apps/app/ui-tests-app/issues/issue-2661.css
Normal file
4
apps/app/ui-tests-app/issues/issue-2661.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ActionBar {
|
||||||
|
color: red;
|
||||||
|
background-color: green;
|
||||||
|
}
|
5
apps/app/ui-tests-app/issues/issue-2661.ts
Normal file
5
apps/app/ui-tests-app/issues/issue-2661.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { topmost } from "ui/frame";
|
||||||
|
|
||||||
|
export function onTap() {
|
||||||
|
topmost().navigate("ui-tests-app/issues/issue-2661-second");
|
||||||
|
}
|
8
apps/app/ui-tests-app/issues/issue-2661.xml
Normal file
8
apps/app/ui-tests-app/issues/issue-2661.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||||
|
<Page.actionBar>
|
||||||
|
<ActionBar title="red green"/>
|
||||||
|
</Page.actionBar>
|
||||||
|
<StackLayout>
|
||||||
|
<Button text="Forward" tap="onTap" />
|
||||||
|
</StackLayout>
|
||||||
|
</Page>
|
@ -15,6 +15,7 @@ export function pageLoaded(args: EventData) {
|
|||||||
examples.set("2674", "issues/issue-2674");
|
examples.set("2674", "issues/issue-2674");
|
||||||
examples.set("2942", "issues/issue-2942");
|
examples.set("2942", "issues/issue-2942");
|
||||||
examples.set("3007", "issues/issue-3007");
|
examples.set("3007", "issues/issue-3007");
|
||||||
|
examples.set("2661", "issues/issue-2661");
|
||||||
|
|
||||||
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
|
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
|
||||||
page.bindingContext = viewModel;
|
page.bindingContext = viewModel;
|
||||||
|
Reference in New Issue
Block a user