Sistema provides a password input field displaying a password input and a button allowing to show/hide the password.
nsi-password-input
is extending
NativeTextFieldDirective
meaning it's working well with both Angular
FormModule
and
ReactiveFormModule
.
PaFormControlDirective
NativeTextFieldDirective
nsi-password-input
is extending
NativeTextFieldDirective
but some of the Inputs inherited from it doesn't make sense in the context of a password field. Here's the list of
Inputs which have an effect on
nsi-password-input
:
string
value on key up event
KeyboardEvent
and
string
value when pressing enter
FocusEvent
on focus
Password input is working well with both Angular FormModule and ReactiveFormModule.
ngModel example:
{{ngModelCode}}
FormControl example:
{{formControlCode}}
FormGroup example:
{{formGroupCode}}