@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
14 lines (13 loc) • 787 B
TypeScript
import type { RowAggregated, RowGroup, RowLeaf } from "@1771technologies/lytenyte-shared";
import type { API, CellParamsWithIndex, GridSpec } from "../types";
import type { ReactNode } from "react";
import { type SlotComponent } from "../hooks/use-slot/index.js";
export declare const RowGroupCell: <Spec extends GridSpec = GridSpec>({ api, row, leafLabel, groupLabel, aggLabel, expansionSlot, }: CellParamsWithIndex<Spec> & {
leafLabel?: (row: RowLeaf<Spec["data"]>, api: API<Spec>) => ReactNode;
groupLabel?: (row: RowGroup, api: API<Spec>) => ReactNode;
aggLabel?: (row: RowAggregated, api: API<Spec>) => ReactNode;
expansionSlot?: SlotComponent<{
readonly row: RowGroup;
readonly api: API<Spec>;
}>;
}) => import("react/jsx-runtime").JSX.Element;