@@ -36,10 +36,10 @@ export class Sample {
36
36
'autoFocus' , 'value' ,
37
37
//Native
38
38
'autoCapitalize' , 'autoCorrect' , 'blurOnSubmit' , 'editable' , 'keyboardType' , 'maxLength' , 'multiline' ,
39
- 'password ' , 'placeholder ' , 'placeholderTextColor ' , 'returnKeyType ' , 'selectionColor' , 'selectTextOnFocus'
39
+ 'placeholder ' , 'placeholderTextColor ' , 'returnKeyType ' , 'secureTextEntry ' , 'selectionColor' , 'selectTextOnFocus'
40
40
] . concat ( GENERIC_INPUTS ) . concat ( isAndroid ( ) ? ANDROID_INPUTS : IOS_INPUTS ) ,
41
41
template : `<native-textinput [text]="_nativeValue" [autoCapitalize]="_autoCapitalize" [autoCorrect]="_autoCorrect" [blurOnSubmit]="_blurOnSubmit" [editable]="_editable" [keyboardType]="_keyboardType"
42
- [maxLength]="_maxLength" [multiline]="_multiline" [password ]="_password " [placeholder ]="_placeholder " [placeholderTextColor ]="_placeholderTextColor "
42
+ [maxLength]="_maxLength" [multiline]="_multiline" [placeholder ]="_placeholder " [placeholderTextColor ]="_placeholderTextColor " [secureTextEntry ]="_secureTextEntry "
43
43
[returnKeyType]="_returnKeyType" [selectionColor]="_selectionColor" [selectTextOnFocus]="_selectTextOnFocus"
44
44
(tap)="focusTextInput()" (topFocus)="_handleFocus()" (topChange)="_handleChange($event)" (topSubmitEditing)="_handleSubmitEditing($event)"
45
45
(topBlur)="_handleBlur()" (topEndEditing)="_handleEndEditing($event)" ${ GENERIC_BINDINGS } ${ isAndroid ( ) ? ANDROID_BINDINGS : IOS_BINDINGS } ></native-textinput>`
@@ -105,10 +105,10 @@ export class TextInput extends HighLevelComponent implements OnInit {
105
105
private _keyboardType : string ;
106
106
private _maxLength : number ;
107
107
private _multiline : boolean ;
108
- private _password : boolean ;
109
108
private _placeholder : string ;
110
109
private _placeholderTextColor : number ;
111
110
private _returnKeyType : string ;
111
+ private _secureTextEntry : boolean ;
112
112
private _selectionColor : number ;
113
113
private _selectTextOnFocus : boolean ;
114
114
/**
@@ -139,10 +139,6 @@ export class TextInput extends HighLevelComponent implements OnInit {
139
139
* To be documented
140
140
*/
141
141
set multiline ( value : any ) { this . _multiline = this . processBoolean ( value ) ; }
142
- /**
143
- * To be documented
144
- */
145
- set password ( value : any ) { this . _password = this . processBoolean ( value ) ; }
146
142
/**
147
143
* To be documented
148
144
*/
@@ -161,6 +157,10 @@ export class TextInput extends HighLevelComponent implements OnInit {
161
157
* 'default', 'emergency-call', 'google', 'join', 'route', 'yahoo'
162
158
*/
163
159
set returnKeyType ( value : string ) { this . _returnKeyType = this . processEnum ( value , [ 'done' , 'go' , 'next' , 'search' , 'send' , 'none' , 'previous' , 'default' , 'emergency-call' , 'google' , 'join' , 'route' , 'yahoo' ] ) ; }
160
+ /**
161
+ * To be documented
162
+ */
163
+ set secureTextEntry ( value : any ) { this . _secureTextEntry = this . processBoolean ( value ) ; }
164
164
/**
165
165
* To be documented
166
166
*/
0 commit comments