UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

16 lines (15 loc) 551 B
import type { DropEventParams } from "../+types.js"; export interface GridBoxItem<T = any> { readonly id: string; readonly label: string; readonly data: T; readonly dragData: Record<string, any>; readonly draggable: boolean; readonly dragPlaceholder?: (el: HTMLElement) => HTMLElement; readonly onDrop: (p: DropEventParams) => void; readonly onAction: (el: HTMLElement) => void; readonly onDelete: (el: HTMLElement) => void; readonly index: number; readonly source: string; readonly active?: boolean; }