<paper-comma-input>
is a material design text field which automatically adds comma to separate out the digits.
<paper-comma-input value="1000"></paper-comma-input>
Install the component using Bower:
$ bower install paper-comma-input --save
-
Import polyfill:
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
-
Import custom element:
<link rel="import" href="bower_components/paper-comma-input/paper-comma-input.html">
-
Start using it!
<paper-comma-input value="1000"></paper-comma-input>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
-
$ npm install -g polymer-cli
-
Install local dependencies:
$ bower install
-
Start development server and open
http://localhost:8080/components/paper-comma-input/
.$ polymer serve