Between-operator filters for date ranges
Live in demo 64-filter-between-operator.
Open the live example: Filter - between operator (Filtering & Search)
When
"From / to" date range as one filter, not two.
How
Key API surface:
api.setFilter(id, { operator: 'between', value, valueTo })
See the demo source for the full implementation; this recipe pins the pattern + the surface so you can copy-paste it confidently. The doc page that explains the underlying feature in depth is linked from the recipes index.
See also
- Demo 64-filter-between-operator source
- Demo 64-filter-between-operator prompt sidecar - drop into an LLM context window
- Recipes index
Related articles
- Saved Views - Persist Grid Layout and Filters - Give users named, switchable snapshots of column order, sorting, filters, and grouping - persisted to localStorage or a server adapter - using SvGrid's createNamedViews API.
- Immutable Grid Updates Without Killing Performance - Surgical immutability - how to get predictable reactivity in SvGrid without the cost of cloning everything on every change.
- Immutable Data Updates in Svelte 5 - Svelte 5 runes track both mutation and reassignment, but for grids and lists, the way you update data determines whether re-renders are surgical or wasteful. Here are the patterns that actually hold up.