Create a new number input field and initialize it.
Optionallabel: string = ''The label text.
Optionalvalue: number = 0The initial value.
Optionalcallback: ((value: number) => void) | null = nullThe function to call when the input is changed.
Do the necessary initialization.
Add one or more classes to an element.
Bind an input field to an object property.
The object to bind the property to.
The property to bind.
Destroy the element
Get the value of the input field.
Add a change event listener to the input field.
The function to call when the input is changed.
Add a click event listener to the widget.
The function to call when the widget is clicked.
Remove one or more classes from an element.
Set the content of the widget.
The value to set the content to.
Set the label of the input field.
The new label text.
Set the text of the widget.
The value to set the text to.
Set the value of the input field.
A class that represents an input field where only numbers can be entered.
@ extends Widget implements ValueWidget