ember-cli-password-toggle

3.1.0 • Public • Published

ember-cli-password-toggle

Build Status NPM Downlaads

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

Readme

Keywords

Package Sidebar

Install

npm i ember-cli-password-toggle

Weekly Downloads

17

Version

3.1.0

License

MIT

Unpacked Size

223 kB

Total Files

11

Last publish

Collaborators

  • nchristus
  • toranb