A quantity selector written in ES6.
npm i up-down --save
const el = documentconst counter =countercountercounter
dist/up-down.css for styles, or style as you wish.
Destroy An Instance
Destroy an instance and all handlers.
The current count is always available on the instance.
- knot.js: A browser-based event emitter, for tying things together. By @callmecavs
- closest: Find the closest parent that matches a selector. By @ForbesLindesay
- Allow user to pass min/max values to instance to override the native min/max attributes
- Allow custom markup? Or at least give selector classes to allow markup to be changed.