File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 4
4
floatingColorProperty ,
5
5
floatingInactiveColorProperty ,
6
6
floatingProperty ,
7
+ helperColorProperty ,
7
8
helperProperty ,
8
9
maxLengthProperty ,
9
10
strokeColorProperty ,
@@ -104,6 +105,10 @@ export class TextView extends TextViewBase {
104
105
this . layoutView . setHint ( text ) ;
105
106
}
106
107
108
+ [ helperColorProperty . setNative ] ( value ) {
109
+ const color = value instanceof Color ? value . android : value ;
110
+ this . layoutView . setHelperTextColor ( android . content . res . ColorStateList . valueOf ( color ) ) ;
111
+ }
107
112
[ placeholderColorProperty . setNative ] ( value : Color ) {
108
113
const placeholderColor = value instanceof Color ? value . android : value ;
109
114
const floatingColor = this . floatingColor instanceof Color ? this . floatingColor . android : placeholderColor ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export abstract class TextViewBase extends NSTextView {
7
7
abstract clearFocus ( ) ;
8
8
9
9
@cssProperty helper : string ;
10
+ @cssProperty helperColor : Color ;
10
11
@cssProperty maxLength : number ;
11
12
@cssProperty errorColor : Color ;
12
13
@cssProperty floating : boolean ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class TextView extends EditableTextBase {
12
12
nativeViewProtected : any ;
13
13
14
14
helper : string ;
15
+ helperColor : Color ;
15
16
maxLength : number ;
16
17
errorColor : Color ;
17
18
floating : boolean ;
Original file line number Diff line number Diff line change 6
6
floatingColorProperty ,
7
7
floatingInactiveColorProperty ,
8
8
floatingProperty ,
9
+ helperColorProperty ,
9
10
helperProperty ,
10
11
maxLengthProperty ,
11
12
strokeColorProperty ,
@@ -312,6 +313,11 @@ export class TextView extends TextViewBase {
312
313
[ helperProperty . setNative ] ( value : string ) {
313
314
this . _controller . helperText = value ;
314
315
}
316
+ [ helperColorProperty . setNative ] ( value : string | Color ) {
317
+ const temp = typeof value === 'string' ? new Color ( value ) : value ;
318
+ const color : UIColor = temp . ios ;
319
+ this . _controller . leadingUnderlineLabelTextColor = color ;
320
+ }
315
321
[ maxLengthProperty . setNative ] ( value : number ) {
316
322
this . _controller . characterCountMax = value ;
317
323
}
You can’t perform that action at this time.
0 commit comments