The DojoButton widget creates a button that invokes a function
in response to a user's click.
Properties
- text
- The text label for the button
- width
- The width of the button
Events
- onClick
- Specifies an event that is to occur when the button is pressed
Example
The following example shows the
code and outcome for a button that is labeled "My Button".
new DojoButton {text="My Button"}