header - Add a checkbox column in Handsontable -


have ever make checkbox column in handsontable?

i try use every way it, it's not working.

when user click checkbox on header, row in column checked.

thanks help.

you can create checkbox column setting column type option 'checkbox'.

var $container = $("#example1"); $container.handsontable({   data: data,   startrows: 5,   colheaders: true,   minsparerows: 1,   columns: [     {data: "id", type: 'text'},     //'text' default, don't have declare     {data: "isactive", type: 'checkbox'},     {data: "date", type: 'date'},     {data: "color",       type: 'autocomplete',       source: ["yellow", "red", "orange", "green", "blue", "gray", "black", "white"]     }   ] }); 

for more detail see this example


Comments