Checkbox

Data in such cells will be rendered as checkbox and can be easily changed by checking/unchecking the checkbox.

Checking and unchecking can be performed using mouse or by pressing SPACE. You can change the state of multiple cells at once. Simply select cells you want to change and press SPACE

Checkbox true/false values

This is default usage scenario when columns data have true or false value and we want to display only checkboxes.

Checkbox template

If you want use other values than true and false, you have to provide this information using checkedTemplate and uncheckedTemplate. Handsontable will then update your data using appropriate template.

Checkbox labels

If you want to add label to the checkbox you can use label option. With this option you can declare where label will be injected (before or after checkbox element) and from what data source label text will be updated.

Edit this page

Tutorial: Checkbox