NumberInput class
The NumberInput
class turns a HTMLInputElement
into a number input field.
Signature:
export declare class NumberInput
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(args) | Creates a new NumberInput instance. |
Methods
Method | Modifiers | Description |
---|---|---|
decrement() | Decrements the value by the configured step. | |
destroy() | Destroys a NumberInput instance, removing all event listeners. | |
getValue() | Gets the current value. | |
increment() | Increments the value by the configured step. | |
setOptions(options) | Updates the options. | |
setValue(value) | Sets a value programmatically. |