Hooks & Utilities
v1.0.0Added in 1.0.0
The filter model of builders and saved views: typed fields, AND / OR groups, evaluation, a sentence per filter and url strings.
Pick a saved view in the playground: its conditions show as chips, the sentence under them is describeFilter in the chosen locale, and the client list below is applyFilter over the twelve Northwind CRM customers. Switch the top-level combinator between AND and OR and watch the count change. Remove a chip with its × button (or Delete while it has focus) to see removeFilterNode; the url string at the bottom is serializeFilter and reads back with parseFilter.
npx wingo-ui@latest add filtersPro item: the CLI needs a Pro account. See plans
City is any of New York or London and (Balance ≥ $5,000 or Last invoice in the last 7 days)
?filter=WyJhIixbWyJjaXR5IiwiYW55LW9mIixbIk5ldyBZb3JrIiwiTG9uZG9uIl1dLFsibyIsW1siYmFsYW5jZSIsImd0ZSIsNTAwMF0sWyJsYXN0SW52b2ljZSIsImluLWxhc3QiLDddXV1dXQ