FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: tabTextFontSize example added by NickIliev · Pull Request #103 · NativeScript/nativescript-sdk-examples-js · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .md  (1) .xml  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
10 changes: 6 additions & 4 deletions app/ns-ui-widgets-category/tab-view/styling/article.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
The `TabView` component has the following unique styling properties:

* `selectedTabTextColor` (corresponding CSS property selected-tab-text-color ) - change the color of the text, while selecting some of the tabs.
* `selectedTabTextColor` (corresponding CSS property `selected-tab-text-color` ) - Changes the color of the text, while selecting some of the tabs.

* `tabBackgroundColor` (corresponding CSS property tab-background-color) - change the background of the tabs.
* `tabBackgroundColor` (corresponding CSS property `tab-background-color`) - Sets the background color of the tabs.

* `textTransform` (corresponding CSS property text-transform) - set up textTransform individually for every `TabViewItem`. Value options: capitalize, lowercase, none, uppercase.
* `tabTextFontSize` (corresponding CSS property `tab-text-font-size`) - Sets the font size of the tabs.

* `androidSelectedTabHighlightColor`<sup>android specific property</sup> (corresponding CSS property `android-selected-tab-highlight-color`) - setup underline color of the `Tab`s in Android.
* `textTransform` (corresponding CSS property `text-transform`) - Sets the text transform individually for every `TabViewItem`. Value options: `capitalize`, `lowercase`, `none`, and `uppercase`.

* `androidSelectedTabHighlightColor`<sup>android specific property</sup> (corresponding CSS property `android-selected-tab-highlight-color`) - Sets the underline color of the tabs in Android.

XML
<snippet id='tab-view-styling-xml'/>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
</Page.actionBar>
<GridLayout rows="*" columns="*">
<!-- >> tab-view-styling-xml -->
<TabView id="tabViewContainer" selectedTabTextColor="purple" tabBackgroundColor="yellow" androidSelectedTabHighlightColor="red">
<TabViewItem title="First Tab" iconSource="res://icon" textTransform="lowercase">
<TabView selectedTabTextColor="white"
tabBackgroundColor="orangered"
tabTextFontSize="16"
androidSelectedTabHighlightColor="green">
<TabViewItem title="First tab" iconSource="res://icon" textTransform="capitalize">
<StackLayout>
<Label text="First Tab" textWrap="true" class="m-15 h2 text-left" color="blue" />
<Label text="First Tab" textWrap="true" class="m-15 h2 text-center" color="blue" />
</StackLayout>
</TabViewItem>
<TabViewItem title="Second Tab" iconSource="res://icon" textTransform="lowercase">
<TabViewItem title="Second tab" iconSource="res://icon" textTransform="capitalize">
<StackLayout>
<Label text="Second Tab" textWrap="true" class="m-15 h2 text-left" color="blue" />
<Label text="Second Tab" textWrap="true" class="m-15 h2 text-center" color="blue" />
</StackLayout>
</TabViewItem>
</TabView>
Expand Down

Back | FazBrowse Home | New Git URL