UNPKG

lumarc-grid

Version:

lumArc Grid는 고성능, 유연하고 프레임워크에 구애받지 않는 데이터 그리드 라이브러리

48 lines 2.62 kB
import { GridColumn } from '../../types'; import { GridPosition } from '../../hooks/use-grid-keyboard-navigation'; import * as React from 'react'; interface GridStandardTableProps<T> { data: T[]; columns: GridColumn<T>[]; sorting: Array<{ id: string; desc: boolean; }>; selectedRows: Set<string>; showSelection?: boolean; showActions?: boolean; sortable?: boolean; isAllSelected: boolean; isIndeterminate: boolean; editingCell?: { rowId: string; field: string; } | null; recentlySavedCells?: Set<string>; singleClickEdit?: boolean; validationErrors?: Record<string, string>; isRowCreated?: (itemId: string | number) => boolean; isRowModified?: (itemId: string | number) => boolean; isRowDeleted?: (itemId: string | number) => boolean; onSelectAll: (checked: boolean) => void; onRowSelect?: (selectedRows: T[]) => void; onRowSelectChange?: (rowKey: string, checked: boolean) => void; onSort: (columnId: string) => void; onRowAction: (action: string, rowData: T, rowIndex: number) => void; onEditStart?: (rowId: string, field: string) => void; onEditCancel?: () => void; onCellEditComplete?: (rowId: string, field: string, value: string | number) => void; onCellValueChange?: (rowId: string, field: string, value: string | number) => void; onTabToNext?: (rowId: string, field: string, totalRows: number) => void; onTabToPrevious?: (rowId: string, field: string) => void; currentPosition?: GridPosition | null; selectedCell?: GridPosition | null; isCellSelected?: (position: GridPosition) => boolean; registerCellRef?: (position: GridPosition, ref: HTMLElement | null) => void; onCellMouseDown?: (position: GridPosition, event: React.MouseEvent) => void; onCellKeyDown?: (position: GridPosition, event: React.KeyboardEvent) => void; onCellClick?: (position: GridPosition, event: React.MouseEvent) => void; } export declare function GridStandardTable<T>({ data, columns, sorting, selectedRows, showSelection, showActions, sortable, isAllSelected, isIndeterminate, editingCell, recentlySavedCells, singleClickEdit, validationErrors, isRowCreated, isRowModified, isRowDeleted, onSelectAll, onRowSelectChange, onSort, onRowAction, onEditStart, onEditCancel, onCellEditComplete, onCellValueChange, onTabToNext, onTabToPrevious, currentPosition, isCellSelected, registerCellRef, onCellMouseDown, onCellKeyDown, onCellClick, }: GridStandardTableProps<T>): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=grid-standard-table.d.ts.map