Use responsive columns
useResponsiveColumns, UseResponsiveColumnsOptions: generated from the source of active-grid.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Functions, hooks and constants#
Watches the grid container width via ResizeObserver and auto-toggles column visibility based on meta. breakpoints.
Only manages columns that have a responsive — user-toggled visibility of other columns is not affected.
<TData extends Record<string, unknown>>(publicGrid: Grid<TData>, scrollElement: HTMLElement | null, options: UseResponsiveColumnsOptions) => voidTypes#
interface UseResponsiveColumnsOptions {
enabled: boolean;
breakpoints?: Record<number, number>;
}