Skip to content

Commit 5dcc056

Browse files
committed
docs: tabs tips & tricks article added (font icons)
1 parent 7cfca4f commit 5dcc056

File tree

6 files changed

+22
-51
lines changed

6 files changed

+22
-51
lines changed

.migration_backup/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222
"nativescript": {
2323
"id": "org.nativescript.nativescriptsdkexamplesjs",
2424
"tns-android": {
25-
"version": "6.0.0-rc-2019-07-04-174325-01"
25+
"version": "6.0.0"
2626
},
2727
"tns-ios": {
28-
"version": "6.0.0-rc-2019-07-04-095546-01"
28+
"version": "6.0.0"
2929
}
3030
},
3131
"dependencies": {
3232
"nativescript-theme-core": "~1.0.4",
33-
"tns-core-modules": "rc"
33+
"tns-core-modules": "6.0.1"
3434
},
3535
"devDependencies": {
3636
"eslint": "~5.9.0",
3737
"fs-extra": "^0.30.0",
3838
"markdown-snippet-injector": "^0.2.4",
39-
"nativescript-dev-webpack": "next",
39+
"nativescript-dev-webpack": "1.0.0",
4040
"tar.gz": "^1.0.7",
41-
"tns-platform-declarations": "rc",
41+
"tns-platform-declarations": "6.0.1",
4242
"tslint": "5.11.0",
4343
"typescript": "3.4.1"
4444
},
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Icon Fonts in Tabs
2+
3+
Using icon fonts to customize the UI of your TabStripItem components is possible through the `font://` prefix for the `iconSource` property.
4+
<snippet id='tabs-tips-icons-js'/>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.font-size {
2+
font-size: 14;
3+
}
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
<Page>
22
<Page.actionBar>
3-
<ActionBar title="Tabs - Tips and Tricks"/>
3+
<ActionBar title="BottomNavigation - Usage"/>
44
</Page.actionBar>
5-
6-
<Tabs selectedIndex="1">
7-
8-
<!-- The bottom tab UI is created via TabStrip (the containier) and TabStripItem (for each tab)-->
5+
<!-- >> tabs-tips-icons-js -->
6+
<Tabs selectedIndex="1" class="fas font-size">
7+
<!-- Using icon fonts for each TabStripItem -->
98
<TabStrip>
10-
<TabStripItem title="Home" iconSource="res://baseline_home_black_18pt"></TabStripItem>
11-
<TabStripItem title="Account" iconSource="res://baseline_account_balance_black_18pt"></TabStripItem>
12-
<TabStripItem title="Search" iconSource="res://baseline_search_black_18pt"></TabStripItem>
9+
<TabStripItem title="Home" iconSource="font://&#xf015;"></TabStripItem>
10+
<TabStripItem title="Account" iconSource="font://&#xf2bd;"></TabStripItem>
11+
<TabStripItem title="Search" iconSource="font://&#xf002;"></TabStripItem>
1312
</TabStrip>
14-
15-
<!-- The number of TabContentItem components should corespond to the number of TabStripItem components -->
13+
1614
<TabContentItem>
1715
<GridLayout>
1816
<Label text="Home Page" class="h2 text-center"></Label>
@@ -30,5 +28,5 @@
3028
</TabContentItem>
3129

3230
</Tabs>
33-
31+
<!-- << tabs-tips-icons-js -->
3432
</Page>

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

Lines changed: 0 additions & 34 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"tar.gz": "^1.0.7",
4141
"tns-platform-declarations": "6.0.1",
4242
"tslint": "5.11.0",
43-
"typescript": "3.4.1"
43+
"typescript": "3.4.5"
4444
},
4545
"scripts": {
4646
"lint": "eslint \"app/**/*.js\"",

0 commit comments

Comments
 (0)