Create a new button widget and initialize it.
Optionaltext: string = ''Button text.
Optionalcallback: (() => void) | null = nullThe function to call when the button is clicked.
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 button widget.