Create a new dropdown.
The values parameter should be an object where the keys are the display text and the values are the actual values.
Optionallabel: string = ''The label text.
Optionalvalues: object = {}The values to display in the dropdown.
Optionalvalue: string | null = nullThe initial value of the dropdown.
Optionalcallback: ((value: string) => void) | null = nullThe callback function to call when the value is changed.
Do the necessary initialization.
Add one or more classes to an element.
Bind a property to the dropdown.
The object to bind the property to.
The property to bind.
Destroy the element
Get the value of the dropdown.
Set the callback function to call when the value is changed.
The callback function to call when the value 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 dropdown.
Set the text of the widget.
The value to set the text to.
Set the value of the dropdown.
A class that represents a menu for selecting one of several values.