Skip to content

BooleanArrFilter component

Implement a new BooleanArrFilter component that looks and behaves like the StringArrFilter with options (think filter for crops).

It should have 2 checkboxes when specifying notNull:

  1. Yes
  2. No

When null is allowed, it should have 3 checkboxes:

  1. Yes
  2. No
  3. Not provided (when checking this checkbox, the yes and no are unchecked. When clicking yes or no, this one is unchecked).

The input value for the filter is either a boolean or boolean[].

The output value of this control is boolean[] and it can be [true], [false] or [true, false]. If notNull === false, then the filters NULL: [] is handled as in other filters.

For testing, use code in genesys-pgr/genesys-server!487

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information