ember-cli-password-toggle
v3.1.0
Published
Easily show and hide password via a toggle button.
Downloads
24
Readme
ember-cli-password-toggle
Description
Ember-cli-password-toggle is an ember component that provides an easy way to show and hide a password via a toggle button.
Installation
# install via npm
$ npm install ember-cli-password-toggle --save-dev
Password Toggle
{{password-toggle password=model.password}}
Optionally you set:
- custom classes
- wrapperClass
- buttonClass
- inputClass
- inputId
- focus=true
{{password-toggle password=model.password inputId="input-id" wrapperClass="outerDivClass" buttonClass="buttonCustomClass" inputClass="inputCustomClass" focus=true}}
Migrating from Version 1.x to 2.x
In order to prevent browsers from storing passwords when 'SHOW' is toggled, the plugin has been changed to automatically set the autocomplete value to 'off' when displaying the password in the clear.
Running the unit tests
yarn
ember test
License
Copyright © 2018 Nick Christus
Licensed under the MIT License