Overview > NumberInput

NumberInput class

The NumberInput class turns a HTMLInputElement into a number input field.

Signature:

export declare class NumberInput 

Constructors

ConstructorModifiersDescription
(constructor)(args)Creates a new NumberInput instance.

Methods

MethodModifiersDescription
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.