File tree Expand file tree Collapse file tree 6 files changed +22
-51
lines changed
app/ns-ui-widgets-category/tabs/tips-and-tricks Expand file tree Collapse file tree 6 files changed +22
-51
lines changed Original file line number Diff line number Diff line change 22
22
"nativescript" : {
23
23
"id" : " org.nativescript.nativescriptsdkexamplesjs" ,
24
24
"tns-android" : {
25
- "version" : " 6.0.0-rc-2019-07-04-174325-01 "
25
+ "version" : " 6.0.0"
26
26
},
27
27
"tns-ios" : {
28
- "version" : " 6.0.0-rc-2019-07-04-095546-01 "
28
+ "version" : " 6.0.0"
29
29
}
30
30
},
31
31
"dependencies" : {
32
32
"nativescript-theme-core" : " ~1.0.4" ,
33
- "tns-core-modules" : " rc "
33
+ "tns-core-modules" : " 6.0.1 "
34
34
},
35
35
"devDependencies" : {
36
36
"eslint" : " ~5.9.0" ,
37
37
"fs-extra" : " ^0.30.0" ,
38
38
"markdown-snippet-injector" : " ^0.2.4" ,
39
- "nativescript-dev-webpack" : " next " ,
39
+ "nativescript-dev-webpack" : " 1.0.0 " ,
40
40
"tar.gz" : " ^1.0.7" ,
41
- "tns-platform-declarations" : " rc " ,
41
+ "tns-platform-declarations" : " 6.0.1 " ,
42
42
"tslint" : " 5.11.0" ,
43
43
"typescript" : " 3.4.1"
44
44
},
Original file line number Diff line number Diff line change
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 ' />
Original file line number Diff line number Diff line change
1
+ .font-size {
2
+ font-size : 14 ;
3
+ }
Original file line number Diff line number Diff line change 1
1
<Page >
2
2
<Page .actionBar>
3
- <ActionBar title =" Tabs - Tips and Tricks " />
3
+ <ActionBar title =" BottomNavigation - Usage " />
4
4
</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 -->
9
8
<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 :// " ></TabStripItem >
10
+ <TabStripItem title =" Account" iconSource =" font :// " ></TabStripItem >
11
+ <TabStripItem title =" Search" iconSource =" font :// " ></TabStripItem >
13
12
</TabStrip >
14
-
15
- <!-- The number of TabContentItem components should corespond to the number of TabStripItem components -->
13
+
16
14
<TabContentItem >
17
15
<GridLayout >
18
16
<Label text =" Home Page" class =" h2 text-center" ></Label >
30
28
</TabContentItem >
31
29
32
30
</Tabs >
33
-
31
+ <!-- << tabs-tips-icons-js -->
34
32
</Page >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 40
40
"tar.gz" : " ^1.0.7" ,
41
41
"tns-platform-declarations" : " 6.0.1" ,
42
42
"tslint" : " 5.11.0" ,
43
- "typescript" : " 3.4.1 "
43
+ "typescript" : " 3.4.5 "
44
44
},
45
45
"scripts" : {
46
46
"lint" : " eslint \" app/**/*.js\" " ,
You can’t perform that action at this time.
0 commit comments