Create a new widget and initialize it.
OptionalelementType: string = 'div'The HTML element type.
Do the necessary initialization.
Add one or more classes to an element.
Destroy the element
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 text of the widget.
The value to set the text to.
A class that represents a user interface widget.