Blank and not-blank operators
Adds the operators blank and notBlank to the text, number, date and set filters. Neither operator takes a value input. 'Blank' is precisely defined so that users can reliably find missing data.
Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A customer grid in which the Phone column contains a mix of values: null, undefined, '', ' ' and real numbers. Each row is labelled with the type of its value.
Expected behavior
blank shows rows with null, undefined and ''. Enabling treatWhitespaceAsBlank also includes ' '. Adding 'N/A' to blankValues makes 'N/A' rows count as blank. The value input is hidden while blank or notBlank is selected.
Planned API surface
operator='blank'operator='notBlank'filterParams.blankValuesfilterParams.treatWhitespaceAsBlankAcceptance criteria
- By default, blank matches null, undefined and the empty string, and nothing else. (pending)
- notBlank is the exact complement of blank over the same row set. (pending)
- treatWhitespaceAsBlank=true also matches strings made up only of Unicode whitespace. (pending)
- Selecting blank or notBlank hides the value input and immediately activates the filter. (pending)
- For number columns, NaN is not blank by default, and this is documented. (pending)