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