Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
This guide covers changes to the beta FilterBar component. These APIs may
continue to evolve before the stable release.
Overview
FilterBar’ssingleSelect and multiSelect filters now render the platform’s
existing select components instead of their own popover bodies:
singleSelect→SelectMenuSync(toolbar) +SelectFieldSync(drawer)multiSelect→MultiSelectMenuSync(toolbar) +MultiSelectFieldSync(drawer)
SelectMenuSyncProps /
MultiSelectMenuSyncProps. Anything those components support — grouping,
virtualization, pinned options, “Select All” / “Select Filtered”,
dialog-on-mobile, rich option content — is available on the filter without
per-filter glue code. See the SelectMenu
and MultiSelectMenu docs for
the full surface.
Migration Guide
Field renames
| Old | New |
|---|---|
items | options |
selectedItem | selectedOption |
selectedItems | selectedOptions |
Search props removed
hasSearch, onSearch, onSearchClear, and searchValue are gone.
SelectMenuSync ships a search field by default and filters client-side via
match-sorter. Drop the callbacks.
disableSearch: true. To customize filtering,
pass a filter function or MatchSorterOptions:
Custom option shapes (the Item generic)
The old filter was generic over a consumer-defined Item extends { id, label }.
Options now use the fixed SelectMenuOption shape — stash custom domain data
in extra:
selectedOption.extra in your onFilterChange handler.
Server-backed options
If you were usingonSearch to hit an API, switch to asyncSelect /
asyncMultiSelect (backed by SelectMenu / MultiSelectMenu):
page,
offset, group).
Option shape
Breaking Changes
- Field renames:
items→options,selectedItem→selectedOption,selectedItems→selectedOptions. - Search props removed:
hasSearch,onSearch,onSearchClear,searchValue. The search field is built-in; client-side filtering uses match-sorter. Override withdisableSearchorfilter. Itemgeneric removed. UseSelectMenuOptionand put custom data inextra.