Filtering
View sourceClick the funnel icon on any header to filter that column. bc-grid ships text, number-range, date-range, set (multi-select), boolean, and custom filter shapes.
Try this
Each filter type is wired by passing { type } on the column.
- Customer — funnel opens a text input. Type "0001" to narrow.
- Sales rep / Status / Region — set filter with checkbox list.
- Amount — number range with min and max inputs.
- Opened — date range with relative tokens (Last 7 days, This month, etc.).
Filter shapes that ship
- text — contains / equals / starts-with / ends-with / regex / not-equals / does-not-contain.
- number / number-range — equals / greater / less / between, single value or pair.
- date / date-range — absolute dates plus ERP relative tokens: today, yesterday, last 7 days, this month, fiscal-quarter, fiscal-year.
- set — multi-select checkbox list of distinct values. Auto-derived from the data; can also be explicit.
- boolean — true / false / either toggles.
- custom — register your own predicate via
registerReactFilterDefinition. The custom filter contract is identical to the built-ins.
Filter persistence
Filters compose with the other persistence stories: feed filterState + onChange to URL or localStorage and the user's filters round-trip across reloads. Saved-view DTOs serialize the entire filter state too.