Skip to content

FilterConfig

Filter config widened to accept a React render function as filterPanelRenderer.

Extends the core FilterConfig so consumers can return a ReactNode (params: FilterPanelParams) => ReactNode in addition to the vanilla (container: HTMLElement, params: FilterPanelParams) => void signature.

type FilterConfig = Omit<CoreFilterConfig<TRow>, "filterPanelRenderer"> & { filterPanelRenderer?: CoreFilterConfig<TRow>["filterPanelRenderer"] | (params: FilterPanelParams) => ReactNode }