@i3code/numeric-input
v1.0.2
Published
This library defines directives to control numeric inputs across browsers
Downloads
6
Keywords
Readme
This library defines directives to control numeric inputs across browsers.
NumericInput
Instalación
Desde la consola:
npm install @i3code/numeric-input
Utilización
Se importa la libreria en donde se quiera usar. En cualquier input de tipo texto o número se añade una de las directivas de la librería
i3codeIntInput
para inputs de números enterosi3codeDecInput
para inputs de números con decimales. Por defecto esta directiva solo admite 2 decimales, pero se puede definir el número que se quiera:i3codeDecInput="número-de-decimales"
Licencia
MIT