The DojoToggleButton widget creates a button and the text of the button changes when clicked.
Other supported fields and functions are described in the following topics in the EGL Programmer’s Guide: “Rich UI widget fields” and ”Rich UI widget functions.”
import dojo.widgets.DojoToggleButton;