Please check: https://snippet.webix.com/qgbae3ev
masterCheckbox
has its own complex logic and it’s not possible to customize it as you need.
Any html content (checkbox as well) can be defined in datafilter
object as mentioned in this article.
However, it’s just a rendering. To make a full-featured filter, you need to do the following:
-
callmasterGrid.filterByAll()
in filter’s onChange;
-
specify the value which will be handled as a filtering parameter ingetValue
-
set your owncompare
method in the related column (custom filtering pattern)
In such checkbox, 3rd state does not affect the real “checked” parameter, so the returned value has to be a combination ofchecked
andindeterminate
attributes.
“Initial” state (that is set during the 1st rendering) won’t be applied untillfilterByAll
, which can be called in any other filter on typing/selection. So the initial value of the checkbox isindeterminate
in order to not affect filtering unless the value will be set by user.