@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
19 lines (18 loc) • 782 B
TypeScript
import type { DropEventParams, Grid, RowGroupModelItem } from "../+types.js";
import type { GridBoxItem } from "./+types.js";
export interface UseRowGroupBoxItems<T> {
readonly grid: Grid<T>;
readonly orientation?: "horizontal" | "vertical";
readonly hideColumnOnGroup?: boolean;
readonly includeGroupables?: boolean;
readonly placeholder?: (el: HTMLElement) => HTMLElement;
}
export declare function useRowGroupBoxItems<T>({ grid, orientation, hideColumnOnGroup, includeGroupables, placeholder, }: UseRowGroupBoxItems<T>): {
rootProps: {
accepted: string[];
onRootDrop: (p: DropEventParams) => void;
orientation: "horizontal" | "vertical" | undefined;
grid: Grid<T>;
};
items: GridBoxItem<RowGroupModelItem<T>>[];
};