A class that represents a text widget.
Create a new text widget and initialize it.
Optional
The text to display.
Do the necessary initialization.
Add one or more classes to an element.
Rest
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 text widget.