1.1.0 • Published 9 years ago

input-password v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

NPM version NPM downloads Package Quality Build Status Dependency Status devDependency Status

<input-password>

The input password with mobile features and possibility to see the password and more.

Demo

http://jorgecasar.github.io/input-password/

Install

Install the component using Bower:

$ bower install input-password --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:

    <script src="bower_components/platform/platform.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/input-password/dist/input-password.html">
  3. Start using it!

    <input-password></input-password>

Options

AttributeOptionsDefaultDescription
namestring | Specifies the input's name.
valuestring | Specifies the input's value.
visiblebooleanfalseSpecifies the visibility of the input's value.
toggleTextstringToggleSpecifies the text for the button that change the visibility.
toggleClassstringvisibleSpecifies the class that will have to be synthesized and spoken.

Methods

MethodParametersReturnsDescription
getShowText()None.Nothing.Get the button's show text.
getHideText()None.Nothing.Get the button's hide text.
showValue()None.Nothing.Triggers the input value to be shown.
hideValue()None.Nothing.Triggers the input value to be hidden.
toggle()None.Nothing.Triggers the input value to be toggled.

Events

EventDescription
onShowValueTriggers when the password is shown.
onHideValueTriggers when the password is hidden.
1.1.0

9 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4-2

10 years ago

0.0.4-1

10 years ago

0.0.4-0

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago