mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added selectedItemColor and unSelectedItemColor to the TabStrip (#8431)
* chore: add guard for ios * feat(bottom-nav): adding new properties * feat(tabs): new property implementation * feat: new feature implementation in android Implemented selectedItemColor and unSelectedItemColor properties on TabStrip * chore: added some comments * chore: change method return type * fix: setting icon color * fix: rendering mode setting * chore: rename variable * chore: fixed a typo * chore: updated log in build gradle * fix: item color setting in android * fix: tab styling when no css aplied * chore: private methods renamed * tests: added selected-item test pages * chore: renamed test pages * chore: move css-tree package to the right place * tests: added new ui tests * fix: use renamed function * fix: set item color * tests: aded automationText attribute * tests: trying to fix the tests Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
This commit is contained in:
@@ -2225,8 +2225,12 @@ export class TabNavigationBase extends View {
|
||||
|
||||
getTabBarItemTextTransform(tabStripItem: TabStripItem): any
|
||||
|
||||
getTabBarSelectedItemColor(): Color
|
||||
|
||||
getTabBarTextTransform(): any
|
||||
|
||||
getTabBarUnSelectedItemColor(): Color
|
||||
|
||||
ios: any /* UITabBarController */;
|
||||
|
||||
items: Array<TabContentItem>;
|
||||
@@ -2266,8 +2270,12 @@ export class TabNavigationBase extends View {
|
||||
|
||||
setTabBarItemTitle(tabStripItem: TabStripItem, value: any): any
|
||||
|
||||
setTabBarSelectedItemColor(value: Color)
|
||||
|
||||
setTabBarTextTransform(value: any): void
|
||||
|
||||
setTabBarUnSelectedItemColor(value: Color)
|
||||
|
||||
tabStrip: TabStrip;
|
||||
}
|
||||
|
||||
@@ -2320,6 +2328,10 @@ export class TabStrip extends View {
|
||||
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
|
||||
|
||||
on(event: "itemTap", callback: (args: TabStripItemEventData) => void, thisArg?: any);
|
||||
|
||||
selectedItemColor: Color;
|
||||
|
||||
unSelectedItemColor: Color;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
||||
Reference in New Issue
Block a user