Sets or gets the check state.
Set the checked property.
checked
let checkbox = document.querySelector('jqx-checkbox');
checkbox.checked = false;
Get the checked property.
let checked = checkbox.checked;
Sets the click mode of the checkbox. Possible values: 'press', 'release', 'pressAndRelease'.
Set the clickMode property.
clickMode
checkbox.clickMode = 'pressAndRelease';
Get the clickMode property.
let clickMode = checkbox.clickMode;
Enables or disables the checkbox.
Set the disabled property.
disabled
checkbox.disabled = false;
Get the disabled property.
let disabled = checkbox.disabled;
Sets or gets the widget's label
Set the enableContainerClick property.
enableContainerClick
checkbox.enableContainerClick = true;
Get the enableContainerClick property.
let enableContainerClick = checkbox.enableContainerClick;
Sets or gets the widget's innerHTML
Set the innerHTML property.
innerHTML
checkbox.innerHTML = 'Checkbox Label';
Get the innerHTML property.
let innerHTML = checkbox.innerHTML;
Sets or gets the widget's name
Set the name property.
name
checkbox.name = 'New Name';
Get the name property.
let name = checkbox.name;
If the custom element is readonly, it cannot be interacted with.
Set the readonly property.
readonly
checkbox.readonly = false;
Get the readonly property.
let readonly = checkbox.readonly;
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
Set the rightToLeft property.
rightToLeft
checkbox.rightToLeft = false;
Get the rightToLeft property.
let rightToLeft = checkbox.rightToLeft;
Sets or gets the widget's value
Set the value property.
value
checkbox.value = 'New Value';
Get the value property.
let value = checkbox.value;
This event is triggered when the widget is checked/unchecked.
Bind to the change event by type: jqxCheckbox
change
checkbox.addEventListener('change', function (event) { // event handling code goes here. }