@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
22 lines (21 loc) • 650 B
TypeScript
export interface PillItemSpec {
readonly id: string;
readonly active: boolean;
readonly name?: string;
readonly movable?: boolean;
readonly tags?: string[];
readonly data?: unknown;
readonly removable?: boolean;
}
export interface PillState {
readonly expanded: boolean;
readonly expandToggle: (s?: boolean) => void;
readonly row: PillRowSpec;
}
export interface PillRowSpec {
readonly id: string;
readonly pills: PillItemSpec[];
readonly accepts?: string[];
readonly label?: string;
readonly type?: "columns" | "row-groups" | "row-pivots" | "column-pivots" | "measures" | ({} & string);
}