Skip to content

Material design text field which automatically adds comma to separate out the digits.

License

Notifications You must be signed in to change notification settings

sinisavukovic/paper-comma-input

Repository files navigation

Published on webcomponents.org Build Status

<paper-comma-input>

<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

Install the component using Bower:

$ bower install paper-comma-input --save

Usage

  1. Import polyfill:

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import custom element:

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

    <paper-comma-input value="1000"></paper-comma-input>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  1. Install bower & polymer:

    $ npm install -g polymer-cli
  2. Install local dependencies:

    $ bower install
  3. Start development server and open http://localhost:8080/components/paper-comma-input/.

    $ polymer serve

Credits

Interesting by Default

License

MIT License

About

Material design text field which automatically adds comma to separate out the digits.

Resources

License

Stars

Watchers

Forks

Packages

No packages published