mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(tabs): allow iconFontFamily for font icons in iconSource
This commit is contained in:
@@ -15,6 +15,7 @@ export abstract class TabViewItemBase extends ViewBase implements TabViewItemDef
|
||||
private _title = '';
|
||||
private _view: View;
|
||||
private _iconSource: string;
|
||||
iconFontFamily: string;
|
||||
|
||||
get textTransform(): CoreTypes.TextTransformType {
|
||||
return this.style.textTransform;
|
||||
@@ -287,6 +288,12 @@ export const tabTextColorProperty = new CssProperty<Style, Color>({
|
||||
});
|
||||
tabTextColorProperty.register(Style);
|
||||
|
||||
export const iconFontFamilyProperty = new CssProperty<Style, string>({
|
||||
name: 'iconFontFamily',
|
||||
cssName: 'icon-font-family',
|
||||
});
|
||||
iconFontFamilyProperty.register(Style);
|
||||
|
||||
export const tabBackgroundColorProperty = new CssProperty<Style, Color>({
|
||||
name: 'tabBackgroundColor',
|
||||
cssName: 'tab-background-color',
|
||||
|
||||
Reference in New Issue
Block a user