Constructor
new Button(id, text, x, y, optionsopt)
- Description:
Instantiate a Button
- Source:
- See:
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
number | ID of the button that will be returned when it is clicked |
||||||||||||||||||||||||||||||||||||||||||||||
text |
string | Text to display on the button |
||||||||||||||||||||||||||||||||||||||||||||||
x |
number | X position to draw the button |
||||||||||||||||||||||||||||||||||||||||||||||
y |
number | Y position to draw the button |
||||||||||||||||||||||||||||||||||||||||||||||
options |
object |
<optional> |
Additional configuration options. Properties
|
Extends
- DisplayWidget