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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions app/ng-ui-widgets-category/tab-view/styling/article.md
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`.

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

HTML
<snippet id='tab-view-styling-ng-html'/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<GridLayout sdkExampleTitle sdkToggleNavButton>
<!-- >> tab-view-styling-ng-html -->
<TabView id="tabViewContainer" selectedTabTextColor="purple" tabBackgroundColor="yellow" androidSelectedTabHighlightColor="red">
<TabView selectedTabTextColor="white"
tabBackgroundColor="orangered"
tabTextFontSize="16"
androidSelectedTabHighlightColor="green">
<StackLayout *tabItem="{title: 'First Tab', iconSource: 'res://icon', textTransform: 'lowercase'}" >
<Label text="First Tab" textWrap="true" class="m-15 h2 text-left" color="blue"></Label>
</StackLayout>
Expand Down