sgc-ng-password
v0.0.7
Published
Custom SGC-NG-PASSWORD Secret UI Components based on Angular (19.1.0) and Material. ***
Readme
SgcNgPassword
Custom SGC-NG-PASSWORD Secret UI Components based on Angular (19.1.0) and Material.
Data model
TFieldFormPasswordDataDefault is the default constructor for all password field component base on TFieldFormEditData.
export const TFieldFormPasswordDataDefault: TFieldFormEditData = {
...TFieldFormTextDataDefault,
hidePassword: true,
hidePasswordSymbol: TypeHidePasswordSymbol.DOT,
typeFieldForm: TypeFieldFormEdit.TEXTE_SECRET
}Password UI Component
1. Component SgcNgPasswordComponent inherit BaseFieldFormEditUI
2. Selector
<sgc-ng-password></sgc-ng-password>4. Example
//--- Declare and Init TFieldFormPasswordData variable
class AppComponent implements OnInit {
mysecret1!: TFieldFormEditData;
ngOnInit() {
this.mysecret1={...TFieldFormPasswordDataDefault, name:'password1', label: 'Mon champ Password 1', disabled:false, showLabel:true, hidePassword:true};
}
} <!-- HTML -->
<sgc-ng-password [(data)]="mysecret1"></sgc-ng-password>