Skip to content

ResponsivePluginConfig

Since v1.8.2

Responsive config widened to accept a React cardRenderer (row, rowIndex, column?) => ReactNode in addition to the vanilla (row, rowIndex, column?) => HTMLElement signature. Bridging to vanilla DOM is handled by the side-effect import @toolbox-web/grid-react/features/responsive.

Re-exported under the same name as the core type so React users see a single canonical ResponsivePluginConfig from @toolbox-web/grid-react.

type ResponsivePluginConfig = Omit<CoreResponsivePluginConfig<TRow>, "cardRenderer"> & { cardRenderer?: CoreResponsivePluginConfig<TRow>["cardRenderer"] | (row: TRow, rowIndex: number, column: Parameters<NonNullable<CoreResponsivePluginConfig<TRow>["cardRenderer"]>>[2]) => ReactNode }