This repo has been ported to ember-frost-core - no more PRs will be accepted.
Installation
ember install ember-frost-password
API
Attribute | Type | Value | Description |
---|---|---|---|
revealable |
boolean |
false |
default: Nothing to see here |
true |
Make password input revealable | ||
disabled |
boolean |
false |
default: Type to your heart's content |
true |
🚫 Can't update this! 🎶 | ||
onInput |
string |
<action-name> |
triggers associated action when the input value is changed |
value |
string |
<value-text> |
what text to put in input |
Examples
Handle Changes to Value
{{frost-password onInput=(action 'closure')}}
Make Password Revealable
{{frost-password revealable=true}}
Disable Input
{{frost-password disabled=true value='Disabled'}}
Make Input Read Only Input
{{frost-password readOnly=true value='Read Only'}}
Development
Setup
git clone git@github.com:ciena-frost/ember-frost-password.git
cd ember-frost-password
npm install && bower install
Development Server
A dummy application for development is available under ember-frost-password/tests/dummy
.
To run the server run ember server
(or npm start
) from the root of the repository and
visit the app at http://localhost:4200.
Testing
Run npm test
from the root of the project to run linting checks as well as execute the test suite
and output code coverage.