We have a handsontable with one of its column of type checkbox
and have also specified afterChange
in htOptions. It works pretty fine and function supplied in afterChange
option gets called every time user interacts with the checkbox.
Now, instead of basic checkbox that we get by default, I want to create a custom/fancy checkbox something like here with below markup.
<label class="custom-checkbox-container">
<input type="checkbox">
<span class="checkmark"></span>
</label>
How can I achieve that? I’m aware of custom renderer, but I also want my handsontable to:
- continue triggering
afterChange
event - insert a new spare row when user checks the checkbox in the last row (since we have
minSpareRows: 1
)
Please help.