Skip to content

Commit 81c0df8

Browse files
committed
docs(project): updated the readme to cover the new api of the info component
1 parent 0c56e27 commit 81c0df8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,13 @@ export class OtherModule {
233233

234234
| option | bind | type | default | description |
235235
|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|
236-
| passwordComponent | Input() | PasswordStrengthComponent | - | the password component used in the template in order to display more info related to the provided password
237-
| enableScoreInfo | Input() | boolean | false | whether to show the password's score in %
236+
| passwordComponent | Input() | PasswordStrengthComponent | - | the password component used in the template in order to display more info related to the provided password
237+
| enableScoreInfo | Input() | boolean| false | whether to show the password's score in %
238+
| lowerCaseCriteriaMsg | Input() | string | contains at least one lower character | an appropriate msg for the lower case %
239+
| upperCaseCriteriaMsg | Input() | string | contains at least one upper character | an appropriate msg for the upper case %
240+
| digitsCriteriaMsg | Input() | string | contains at least one digit character | an appropriate msg for the digit case %
241+
| specialCharsCriteriaMsg | Input() | string | contains at least one special character | an appropriate msg for the special case %
242+
| minCharsCriteriaMsg | Input() | string | contains at least ${this.passwordComponent.min} characters | an appropriate msg for the minimum number of chars %
238243

239244
---
240245

@@ -371,6 +376,12 @@ this will looks like -->
371376

372377
---
373378

379+
#### Supporting custom messages and ngx-translate for the info component please check the example demo [here](https://angular-material-extensions.github.io/password-strength/examples/mat-password-strength-info)
380+
381+
<p align="center">
382+
<img alt="@angular-material-extensions/password-strength demonstration" style="text-align: center;"
383+
src="https://raw.githubusercontent.com/angular-material-extensions/password-strength/HEAD/assets/v3.4.0/support_translations.png">
384+
</p>
374385

375386
for more examples please visit this URL : [(https://angular-material-extensions.github.io/password-strength/examples]((https://angular-material-extensions.github.io/password-strength/examples)
376387

97.3 KB
Loading

0 commit comments

Comments
 (0)