Tutorial: Checkbox

Checkbox


This page shows how to configure Handsontable with Checkbox cell type, which can be helpfull when you have cells that contains only 2 possible values. You will find here:

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

Edit this page

Checkbox true/false values

This is default usage scenario when columns data have true or false value and we want to display ony 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.