diff --git a/README.md b/README.md index bab0339..e5ab88e 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,9 @@ export class App { + [barColors]="myColors" + [baseColor]="baseColor" + [strengthLabels]="strengthLabels"> ``` #### passwordToCheck (type: string) @@ -88,9 +90,28 @@ export class App { #### barColors (type: Array\, optional) _(New in v1.2.0)_ -- The variable can be used to define custom bar colors. This must be an Array of 5 strings!
-Lowest security level picks `colors[0]`, ..., the highest picks `colors[4]`.
-If not specified, the default is: `['#F00', '#F90', '#FF0', '#9F0', '#0F0']` +- The variable can be used to define custom bar colors.
+- This must be an Array of 5 strings.
+- Lowest security level picks `colors[0]`, ..., the highest picks `colors[4]`.
+- If not specified, the default is: `['#F00', '#F90', '#FF0', '#9F0', '#0F0']` + +#### baseColor (type: string, optional) +_(New in v1.2.1)_ +- The variable can be used to define the color of bars when no strength is applied (i.e. when there is no password text).
+- If not specified, the default is: '#DDD'.
+For example: +```angular2html +public baseColor = '#FFF'; +``` + +#### strengthLabels (type: Array\, optional) +_(New in v1.2.1)_ +- The variable can be used to define a strength label that will be appended to the colored bars.
+- This must be an Array of 5 strings.
+For example: +```angular2html +public strengthLabels = ['(Useless)', '(Weak)', '(Normal)', '(Strong)', '(Great!)']; +``` ## Run the example application locally - `git clone https://github.com/rnadler/ng2-password-strength-bar.git` diff --git a/package.json b/package.json index 1a421f0..4fee31a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng2-password-strength-bar", - "version": "1.2.0", + "version": "1.2.1", "description": "Angular 2 Password Strength Bar", "scripts": { "start": "npm run build && concurrently \"tsc -w\" \"lite-server\" ",