Constructor
new ButtonControl(config)
Create a labelled button for use as a control. The structure generated by the code is effectively
- div: className hcje-button-control
- span hcje-control-label
- input classNames hcje-button
Parameters:
| Name | Type | Description |
|---|---|---|
config |
module:hcje/domTools~ButtonConfig | Button configuration. |
- Source:
Extends
- module:hcje/domTools.BaseControl
Methods
getValue() → {boolean}
Get the state of the button. True if down. This is only relevant to a toggle button.
- Source:
Returns:
- Type
- boolean