@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
20 lines (19 loc) • 919 B
TypeScript
import { type ReactNode } from "react";
import type { Column, RowNode } from "../../types";
import type { Grid } from "@1771technologies/lytenyte-core";
export interface ColumnManagerProps<Spec extends Grid.GridSpec = Grid.GridSpec> {
readonly columns: Column<Spec>[];
readonly onColumnsChange: (change: Column<Spec>[]) => void;
readonly base?: Grid.ColumnBase<Spec>;
readonly rowHeight?: number;
readonly endElement?: (params: {
columns: Column<Spec>[];
row: RowNode<Spec["data"]>;
}) => ReactNode;
/**
* @alpha
* Use with caution.
*/
readonly getPillManagerTag?: (column: Column<Spec>) => Record<string, string>;
}
export declare function ColumnManager<Spec extends Grid.GridSpec = Grid.GridSpec>({ columns: provided, base, rowHeight, onColumnsChange, endElement, getPillManagerTag, }: ColumnManagerProps<Spec>): import("react/jsx-runtime").JSX.Element;