File tree Expand file tree Collapse file tree
nativescript-angular/directives Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 ViewContainerRef ,
99} from "@angular/core" ;
1010import { TabView , TabViewItem } from "tns-core-modules/ui/tab-view" ;
11+ import { TextTransform } from "tns-core-modules/ui/text-base" ;
1112
1213import { InvisibleNode } from "../element-registry" ;
1314import { rendererLog } from "../trace" ;
@@ -53,6 +54,7 @@ export class TabViewItemDirective implements OnInit {
5354 private item : TabViewItem ;
5455 private _title : string ;
5556 private _iconSource : string ;
57+ private _textTransform : TextTransform ;
5658
5759 constructor (
5860 private owner : TabViewDirective ,
@@ -89,6 +91,20 @@ export class TabViewItemDirective implements OnInit {
8991 }
9092 }
9193
94+
95+ @Input ( )
96+ get textTransform ( ) {
97+ return this . _textTransform ;
98+ }
99+
100+ set textTransform ( value : TextTransform ) {
101+ if ( this . _textTransform !== value ) {
102+ this . _textTransform = value ;
103+ this . ensureItem ( ) ;
104+ this . item . textTransform = this . _textTransform ;
105+ }
106+ }
107+
92108 private ensureItem ( ) {
93109 if ( ! this . item ) {
94110 this . item = new TabViewItem ( ) ;
@@ -100,6 +116,7 @@ export class TabViewItemDirective implements OnInit {
100116 if ( this . config ) {
101117 this . item . title = this . _title || this . config . title ;
102118 this . item . iconSource = this . _iconSource || this . config . iconSource ;
119+ this . item . textTransform = this . _textTransform || this . config . textTransform ;
103120 }
104121
105122 const viewRef = this . viewContainer . createEmbeddedView ( this . templateRef ) ;
You can’t perform that action at this time.
0 commit comments