Skip to main content

ControlsComponentButton

Definition of a button in the controls component.

Properties​

class​

class: string

css class to set on the button's DOM element


handler()​

handler: (e, id) => any

Handler for clicks (taps) on this button.

Parameters​

e​

Event

id​

string

Returns​

any


id​

id: string

Button's id.


mode?​

optional mode: string

Optional UI mode to set when the button is pressed


title​

title: string

Set as the button's DOM element's label attribute (a tooltip, effectively)