ButtonControl
Use this control to create and manipulate buttons. This control uses the EventControl to notify subscribers when the button is clicked.
Inherits properties from its parent, InputControl.
Initialize
Initialize the control.
const buttonElement = ElementResolver.resolveOne('#someButton');
const exampleButton = new ButtonControl(buttonElement);
exampleButton.initialize();
.click()
Trigger a click progammatically.
.clickEvent.subscribe()
Subscribe to the buttons' click event. See Event Control.