Constructor
new module:Button(positionDefinition, optionsopt)
Button constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
positionDefinition | PositionDefinition | Position of the top-left corner | |
options | ButtonOptions | <optional> | Specific options |
- Source
Extends
Members
(static) defaultOptions :ButtonOptions
Type:
- ButtonOptions
- Source
(static) MARGIN :Number
Margin around the text
Type:
- Number
- Source
height
Get this button's height
- Source
size
Computer button size
- Source
value
Return this button's text
- Overrides
- Source
value
Change this button's text
- Overrides
- Source
width
Get this button's width
- Source
Type Definitions
ButtonOptions
Type:
Properties- Object
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
value | String | <optional> | "" | Text of the button |
- Source