new ButtonElement(options)
constructs a ButtonElement instance
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | the options object to be merged with defaults |
Extends
Methods
-
alignText(mode)
-
aligns the text inside the LabelElement container
Parameters:
Name Type Description modeString can be a couple of word for horizontal or vertical align, in any order
accepts the following modes
- Horizontal Modes: left, center, right
- Vertical Modes: top, middle, bottom
- Inherited From:
Returns:
- Type
- LabelElement
-
centerText()
-
centers the text inside LabelElement container
- Inherited From:
-
computeBounds()
-
compute bounds before drawing all graphic elements of LabelElement instance
- Inherited From:
-
initDefaults()
-
Initialize default settings for Button Element
- Overrides:
-
initDefaults()
-
Initialize default settings for Button Element
- Overrides: