JSPM

mn-numeric-input

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q30014F
  • License MIT

Numeric input allowing comma seperator after thousand, can be used for pure integer number as well as for float. Restrict user to enter alphabets only accepts numbers and only one dot in case of float number

Package Exports

  • mn-numeric-input

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mn-numeric-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mn-numeric-input

This README outlines the details of collaborating on this Ember addon.

Installation

  • cd PROJECT_DIR where PROJECT_DIR is your ember project
  • npm install mn-numeric-input --save this will install installation of mn-numeric-input module into node_module directory

Easy to use

  • Simple to use, after installation we can specify like following:

  • {{mn-numeric-input}} No configuration provided so it will allow only numbers & automatically append comma

  • {{mn-numeric-input comma=false}} Comma setting is false so it will allow only numbers & comma will not be added automatically

  • {{mn-numeric-input float=true}} Float setting specifies that user can enter one dot & will accpet numbers after decimal upto 2 decimal(time being decided to keep it for 2 places only). Comma will be added automatically once user start filling number & behave accordingly

  • {{mn-numeric-input float=true comma=false}} Same as above but there will be no comma appended to it

  • When you hit save it will save the value including comma(if not disabled comma setting)

Running

Improvement

  • Feel free to suggest Improvements, enhancements

For more information on using ember-cli, visit https://ember-cli.com/.