Skip to content

Commit 41e10ae

Browse files
committed
docs: bottom nav snippet IDs
1 parent e57fff2 commit 41e10ae

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

app/ns-ui-widgets-category/bottom-navigation/bottom-navigation-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ const ListViewLinksModel = require("../../links-view-model");
22
const link = require("../../link");
33
const navigationLinks = [
44
new link("Usage", "ns-ui-widgets-category/bottom-navigation/usage/usage-page"),
5-
new link("Usage", "ns-ui-widgets-category/bottom-navigation/styling/styling-page"),
5+
new link("Theming", "ns-ui-widgets-category/bottom-navigation/theming/theming-page"),
66
new link("Events", "ns-ui-widgets-category/bottom-navigation/events/events-page"),
77
new link("Properties", "ns-ui-widgets-category/bottom-navigation/properties/properties-page"),
88
new link("Tips & Tricks", "ns-ui-widgets-category/bottom-navigation/tips-and-tricks/tips-and-tricks-page")
99
];
1010
const navigationLinksTsc = [
1111
new link("Usage", "ns-ui-widgets-category/bottom-navigation/usage/usage-ts-page"),
12-
new link("Usage", "ns-ui-widgets-category/bottom-navigation/styling/styling-ts-page"),
12+
new link("Theming", "ns-ui-widgets-category/bottom-navigation/theming/theming-ts-page"),
1313
new link("Events", "ns-ui-widgets-category/bottom-navigation/events/events-ts-page"),
1414
new link("Properties", "ns-ui-widgets-category/bottom-navigation/properties/properties-ts-page"),
1515
new link("Tips & Tricks", "ns-ui-widgets-category/bottom-navigation/tips-and-tricks/tips-and-tricks-ts-page")

app/ns-ui-widgets-category/bottom-navigation/metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ description: The NativeScript's BottomNavigation component provides a simple way
44
position: 416
55
slug: bottom-navigation
66
---
7-
example-order: usage, styling, properties, events, tips-and-tricks
7+
example-order: usage, theming, properties, events, tips-and-tricks

app/ns-ui-widgets-category/bottom-navigation/properties/properties-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const Label = require("tns-core-modules/ui/label").Label;
22
const StackLayout = require("tns-core-modules/ui/layouts/stack-layout").StackLayout;
33
const Color = require("tns-core-modules/color/color").Color;
4-
// >> bottom-navigation-events-js
4+
// >> bottom-navigation-properties-js
55
const TabStrip = require("tns-core-modules/ui/bottom-navigation").TabStrip;
66
const TabStripItem = require("tns-core-modules/ui/bottom-navigation").TabStripItem;
77
const TabContentItem = require("tns-core-modules/ui/bottom-navigation").TabContentItem;
@@ -33,7 +33,7 @@ exports.onBottomNavLoaded = (args) => {
3333
*/
3434
console.log("bottomNav.nativeView: ", bottomNav.nativeView);
3535
};
36-
// << bottom-navigation-events-js
36+
// << bottom-navigation-properties-js
3737

3838
function createTabStrip() {
3939
// TabStrip

app/ns-ui-widgets-category/bottom-navigation/properties/properties-ts-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Label } from "tns-core-modules/ui/label";
22
import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout";
33
import { Color } from "tns-core-modules/color/color";
4-
// >> bottom-navigation-events-tsc
4+
// >> bottom-navigation-properties-tsc
55
import { EventData } from "tns-core-modules/data/observable";
66
import { BottomNavigation, TabStrip, TabStripItem, TabContentItem } from "tns-core-modules/ui/bottom-navigation";
77

@@ -29,7 +29,7 @@ export function onBottomNavLoaded(args: EventData) {
2929

3030
console.log(bottomNav.nativeView);
3131
}
32-
// << bottom-navigation-events-tsc
32+
// << bottom-navigation-properties-tsc
3333

3434
function createTabStrip() {
3535
const tabStrip: TabStrip = new TabStrip();

app/ns-ui-widgets-category/bottom-navigation/styling/styling-page.xml renamed to app/ns-ui-widgets-category/bottom-navigation/theming/theming-page.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Page.actionBar>
33
<ActionBar title="BottomNavigation - Usage"/>
44
</Page.actionBar>
5-
<!-- >> bottom-navigation-basics-xml -->
5+
66
<BottomNavigation selectedIndex="1">
77

88
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
@@ -30,5 +30,5 @@
3030
</TabContentItem>
3131

3232
</BottomNavigation>
33-
<!-- << bottom-navigation-basics-xml -->
33+
3434
</Page>

app/ns-ui-widgets-category/bottom-navigation/styling/styling-ts-page.xml renamed to app/ns-ui-widgets-category/bottom-navigation/theming/theming-ts-page.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Page.actionBar>
33
<ActionBar title="BottomNavigation - Usage"/>
44
</Page.actionBar>
5-
<!-- >> bottom-navigation-basics-tsc-xml -->
5+
66
<BottomNavigation selectedIndex="1">
77

88
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
@@ -30,5 +30,5 @@
3030
</TabContentItem>
3131

3232
</BottomNavigation>
33-
<!-- << bottom-navigation-basics-tsc-xml -->
33+
3434
</Page>

app/ns-ui-widgets-category/bottom-navigation/tips-and-tricks/tips-and-tricks-page.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Page.actionBar>
33
<ActionBar title="BottomNavigation - Usage"/>
44
</Page.actionBar>
5-
<!-- >> bottom-navigation-basics-xml -->
5+
66
<BottomNavigation selectedIndex="1">
77

88
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
@@ -30,5 +30,5 @@
3030
</TabContentItem>
3131

3232
</BottomNavigation>
33-
<!-- << bottom-navigation-basics-xml -->
33+
3434
</Page>

app/ns-ui-widgets-category/bottom-navigation/tips-and-tricks/tips-and-tricks-ts-page.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Page.actionBar>
33
<ActionBar title="BottomNavigation - Usage"/>
44
</Page.actionBar>
5-
<!-- >> bottom-navigation-basics-tsc-xml -->
5+
66
<BottomNavigation selectedIndex="1">
77

88
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
@@ -30,5 +30,5 @@
3030
</TabContentItem>
3131

3232
</BottomNavigation>
33-
<!-- << bottom-navigation-basics-tsc-xml -->
33+
3434
</Page>

0 commit comments

Comments
 (0)