Skip to main content
ControlsComponentButton
Definition of a button in the controls component.
NameTypeDescription
classstringcss class to set on the button's DOM element
handler(e:Event, id:string) => anyHandler for clicks (taps) on this button.
idstringButton's id.
mode?stringOptional UI mode to set when the button is pressed
titlestringSet as the button's DOM element's label attribute (a tooltip, effectively)