Skip to content

Commit fcb8680

Browse files
committed
feat: support role on TabViewItem
1 parent 0c7ee0e commit fcb8680

File tree

4 files changed

+292
-244
lines changed

4 files changed

+292
-244
lines changed

apps/nativescript-demo-ng/src/app/home/home.component.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,46 @@
1313
</MDTabContentItem>
1414
</MDBottomNavigation>
1515
</GridLayout>
16+
17+
18+
<!-- Uncomment to try core TabView features -->
19+
<!-- <TabView
20+
tabTextFontSize="11"
21+
iosTabBarMinimizeBehavior="onScrollDown"
22+
class="bg-black"
23+
>
24+
<GridLayout
25+
*tabItem="{
26+
title: 'Home',
27+
iconSource: 'sys://house.fill',
28+
}"
29+
>
30+
<Label text="Home Content" class="text-center text-white"></Label>
31+
</GridLayout>
32+
33+
<GridLayout
34+
*tabItem="{
35+
title: 'Saved',
36+
iconSource: 'sys://star.fill',
37+
}"
38+
>
39+
<Label text="Second Tab Content" class="text-center text-white"></Label>
40+
</GridLayout>
41+
42+
<GridLayout
43+
*tabItem="{
44+
title: 'Settings',
45+
iconSource: 'sys://gearshape.fill',
46+
}"
47+
>
48+
<Label text="Third Tab Content" class="text-center text-white"></Label>
49+
</GridLayout>
50+
<GridLayout
51+
*tabItem="{
52+
iconSource: 'res://ns-logo',
53+
role: 'search'
54+
}"
55+
>
56+
<Label text="Search Tab" class="text-center text-white"></Label>
57+
</GridLayout>
58+
</TabView> -->

0 commit comments

Comments
 (0)