MaterialCheckboxControl
Use this control to create and manipulate Material style checkboxes. This control uses the EventControl to notify subscribers when the checkbox is clicked.
Inherits properties from its parent, ElementControl.
Initialize
Initialize the control.
const checkboxElement = ElementResolver.resolveOne('#someCheckbox');
const exampleCheckbox = new MaterialCheckboxControl(checkboxElement);
exampleCheckbox.initialize();
.check()
Check the checkbox.
.uncheck()
Uncheck the checkbox.
.isChecked()
Check whether the checkbox is checked.
.enable()
Enable the input control if it is disabled.
.disable()
Disable the input control if it is enabled.
.value
Get the value of the checkbox.
.checkedEvent.subscribe()
Subscribe to the checkox' checked. See Event Control.
.uncheckedEvent.subscribe()
Subscribe to the checkox' unchecked. See Event Control.