Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gijsroge/stepper.js

jQuery library that adds external controls for input[type=number] so it's themeable
https://github.com/gijsroge/stepper.js

html5 jquery number spinner stepper

Last synced: 6 days ago
JSON representation

jQuery library that adds external controls for input[type=number] so it's themeable

Awesome Lists containing this project

README

        

# Stepper.js
Themeable stepper control buttons that sits on top of a native input[type="number"] element to preserve all browser specific UX enhancements that the input[type=number] provides.

Setting [options](https://github.com/gijsroge/stepper.js#options) is as simple as using the native **step, min, max** attributes.

### Demo
**[Codepen demo](http://codepen.io/gijs/full/XRWKQW/)**

### Usage

```html



+
-


```

### Options
All options can be added inline as attributes on the element. See the example above.
```js
step: "1", // Amount to increment on each step. Also accepts decimals.
min: "1000", // Min amount
max: "10", // Max amount
debounce: 400, // Time in milliseconds to debounce the change event
```

### Install
- **yarn:** `yarn add stepper.js`
- **npm:** `npm install --save stepper.js`

### CDN
- https://unpkg.com/[email protected]/dest/stepper.min.js

### Alternatives
- https://github.com/vsn4ik/jquery.spinner