mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
@@ -38,6 +38,11 @@ export function onNavigateToTabsBottomRoot(args: EventData) {
|
||||
application._resetRootView({ moduleName: "tab-root/tab-bottom-root" });
|
||||
}
|
||||
|
||||
export function onNavigateToSomePage(args: EventData) {
|
||||
const button = <Button>args.object;
|
||||
button.page.frame.navigate("some-page/some-page");
|
||||
}
|
||||
|
||||
export function onFrameToNestedFrame(args: EventData) {
|
||||
const button = <Button>args.object;
|
||||
button.page.frame.navigate({
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<Button text="Page w/ tabs (bottom)" tap="onNavigateToTabsBottomPage" />
|
||||
<Button text="Root tabs (top)" tap="onNavigateToTabsTopRoot" />
|
||||
<Button text="Root tabs (bottom)" tap="onNavigateToTabsBottomRoot" />
|
||||
<Button text="Some page on root" automationText="somePageOnRoot" tap="onNavigateToSomePage" />
|
||||
<Button text="Frame to NestedFrame (non-default transition)" tap="onFrameToNestedFrame" />
|
||||
</StackLayout>
|
||||
</GridLayout>
|
||||
|
||||
Reference in New Issue
Block a user