Jeet97 / ngSpinBox

Spin Box Directive for Input

Home Page:https://devashishpuri.github.io/ngSpinBox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NgSpinBox

Spinbox Directive for Angular.

Installation

npm i ng-spin-box --save

Usage

Import 'NgSpinBoxModule' in app.module.ts / .module.ts

Then, Simply use as a directive, wrapped in a container(Important):

<div>
    <input type='tel' ngSpinBox step='0.01' min='0.01' decimal='2' snapToStep='true'>
</div>

Classes for Wrapper Element, Increment and Decrement Button are: 'ng-spin-box-wrapper', 'ng-spin-box-btn-up' and 'ng-spin-box-btn-down' respectively.

About

Spin Box Directive for Input

https://devashishpuri.github.io/ngSpinBox/


Languages

Language:TypeScript 87.2%Language:JavaScript 9.7%Language:HTML 2.4%Language:CSS 0.6%