lumarc-grid
Version:
lumArc Grid는 고성능, 유연하고 프레임워크에 구애받지 않는 데이터 그리드 라이브러리
25 lines • 1.03 kB
TypeScript
import { GridPosition } from './use-grid-keyboard-navigation';
export interface CellRange {
start: GridPosition;
end: GridPosition;
}
export interface UseGridCellSelectionProps {
totalRows: number;
totalColumns: number;
onSelectionChange?: (selectedCells: GridPosition[]) => void;
disabled?: boolean;
}
export interface UseGridCellSelectionReturn {
selectedRange: CellRange | null;
selectedCells: Set<string>;
isSelecting: boolean;
startSelection: (position: GridPosition) => void;
updateSelection: (position: GridPosition) => void;
endSelection: () => void;
clearSelection: () => void;
selectRange: (start: GridPosition, end: GridPosition) => void;
isCellSelected: (position: GridPosition) => boolean;
getSelectedPositions: () => GridPosition[];
}
export declare function useGridCellSelection({ totalRows, totalColumns, onSelectionChange, disabled, }: UseGridCellSelectionProps): UseGridCellSelectionReturn;
//# sourceMappingURL=use-grid-cell-selection.d.ts.map