Skip to content

Polymer Element : Toggle switch for showing a password input text

Notifications You must be signed in to change notification settings

crypticsoft/password-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polymer Element : Password Toggle

A toggle switch to show the text of a password field. You can view a demo here: https://crypticsoft.github.io/password-toggle/

  1. Download and install from bower (use --save or --save-dev).

    `bower install crypticsoft/password-toggle`
    
  2. Include the component and specify a password selector, this example uses a data attribute:

    <password-toggle data-password-selector="input[data-is-password='true']"></password-toggle>
    <input type="password" name="password" data-is-password="true" value="123456">
    
  3. To preview the element, you can clone the repo (https://github.com/crypticsoft/password-toggle.git) and run:

    polymer serve
    

    Open localhost:8080/components/password-toggle/demo/ in your browser. (Note that the path uses password-toggle—the component name listed in this element's bower.json file—rather than the actual directory name.)

If you're wondering what polymer serve does, see Testing elements with local bower dependencies in the Polymer docs.

About

Polymer Element : Toggle switch for showing a password input text

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages