mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
5
apps/ui/app/segmented-bar/all-page.ts
Normal file
5
apps/ui/app/segmented-bar/all-page.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as frame from '@nativescript/core/ui/frame';
|
||||
|
||||
export function navigate() {
|
||||
frame.topmost().navigate('segmented-bar/clean-page');
|
||||
}
|
||||
19
apps/ui/app/segmented-bar/all-page.xml
Normal file
19
apps/ui/app/segmented-bar/all-page.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<Page>
|
||||
<StackLayout>
|
||||
<SegmentedBar selectedIndex="2" style="color: yellow; background-color: blue; font-weight: bold; font-size: 20; font-style: italic; font-family: monospace; selected-background-color: red;">
|
||||
<SegmentedBar.items>
|
||||
<SegmentedBarItem title="Item 1" />
|
||||
<SegmentedBarItem title="Item 2" />
|
||||
<SegmentedBarItem title="Item 3" />
|
||||
</SegmentedBar.items>
|
||||
</SegmentedBar>
|
||||
<SegmentedBar selectedIndex="2" style="margin: 5; color: blue; background-color: yellow; font-weight: bold; font-size: 20; font-style: italic; font-family: monospace; height: 72; border-width: 2; border-radius: 7; border-color:green; selected-background-color: red;">
|
||||
<SegmentedBar.items>
|
||||
<SegmentedBarItem title="Item 1" />
|
||||
<SegmentedBarItem title="Item 2" />
|
||||
<SegmentedBarItem title="Item 3" />
|
||||
</SegmentedBar.items>
|
||||
</SegmentedBar>
|
||||
<Button text="go to cleared page" tap="navigate" />
|
||||
</StackLayout>
|
||||
</Page>
|
||||
5
apps/ui/app/segmented-bar/clean-page.ts
Normal file
5
apps/ui/app/segmented-bar/clean-page.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as frame from '@nativescript/core/ui/frame';
|
||||
|
||||
export function navigate() {
|
||||
frame.topmost().goBack();
|
||||
}
|
||||
12
apps/ui/app/segmented-bar/clean-page.xml
Normal file
12
apps/ui/app/segmented-bar/clean-page.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<Page>
|
||||
<StackLayout>
|
||||
<SegmentedBar selectedIndex="1">
|
||||
<SegmentedBar.items>
|
||||
<SegmentedBarItem title="Item 1" />
|
||||
<SegmentedBarItem title="Item 2" />
|
||||
<SegmentedBarItem title="Item 3" />
|
||||
</SegmentedBar.items>
|
||||
</SegmentedBar>
|
||||
<Button text="go to previous page" tap="navigate"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user