Creates a Spinner widget.
This jQuery widget turns input fields or DOM nodes into a spin button. Handles such as min, max and currency provided.
Callbacks (init, up, down, spin, change) accept two arguments: The original browser event and a prepared ui object. The ui object have these fields:
- ui.element - a jQuery object containing the spinner element.
- ui.options - options used to initialize the spinner.
- ui.value - current value of the spinner.
- ui.add - add a new item to the spinner (DOM nodes only).
Arguments:
| options (Optional) | Options | |
|---|---|---|
| A set of key/value pairs that configure the spinner. All options are optional. | ||