react-data-grid
Advanced tools
Comparing version 7.0.0-beta.38 to 7.0.0-beta.39
@@ -29,2 +29,3 @@ /// <reference types="react" /> | ||
readonly sortable: boolean; | ||
readonly draggable: boolean; | ||
readonly frozen: boolean; | ||
@@ -75,2 +76,8 @@ readonly isLastFrozenColumn: boolean; | ||
export declare interface CellSelectArgs<TRow, TSummaryRow = unknown> { | ||
rowIdx: number; | ||
row: TRow; | ||
column: CalculatedColumn<TRow, TSummaryRow>; | ||
} | ||
export declare type ColSpanArgs<TRow, TSummaryRow> = { | ||
@@ -119,2 +126,4 @@ type: 'HEADER'; | ||
readonly sortable?: Maybe<boolean>; | ||
/** Enable dragging of a column */ | ||
readonly draggable?: Maybe<boolean>; | ||
/** Sets the column sort order to be descending instead of ascending the first time the column is sorted */ | ||
@@ -218,2 +227,4 @@ readonly sortDescendingFirst?: Maybe<boolean>; | ||
onCellKeyDown?: Maybe<(args: CellKeyDownArgs<R, SR>, event: CellKeyboardEvent) => void>; | ||
/** Function called whenever cell selection is changed */ | ||
onSelectedCellChange?: Maybe<(args: CellSelectArgs<R, SR>) => void>; | ||
/** Called when the grid is scrolled */ | ||
@@ -223,2 +234,4 @@ onScroll?: Maybe<(event: React.UIEvent<HTMLDivElement>) => void>; | ||
onColumnResize?: Maybe<(idx: number, width: number) => void>; | ||
/** Called when a column is reordered */ | ||
onColumnsReorder?: Maybe<(sourceColumnKey: string, targetColumnKey: string) => void>; | ||
/** | ||
@@ -242,3 +255,3 @@ * Toggles and modes | ||
declare type DefaultColumnOptions<R, SR> = Pick<Column<R, SR>, 'renderCell' | 'width' | 'minWidth' | 'maxWidth' | 'resizable' | 'sortable'>; | ||
declare type DefaultColumnOptions<R, SR> = Pick<Column<R, SR>, 'renderCell' | 'width' | 'minWidth' | 'maxWidth' | 'resizable' | 'sortable' | 'draggable'>; | ||
@@ -245,0 +258,0 @@ declare type Direction = 'ltr' | 'rtl'; |
{ | ||
"name": "react-data-grid", | ||
"version": "7.0.0-beta.38", | ||
"version": "7.0.0-beta.39", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Feature-rich and customizable data grid React component", |
@@ -201,2 +201,12 @@ # react-data-grid | ||
###### `onSelectedCellChange?: Maybe<(args: CellSelectArgs<R, SR>) => void>;` | ||
Triggered when the selected cell is changed. | ||
Arguments: | ||
- `args.rowIdx`: `number` - row index | ||
- `args.row`: `R` - row object of the currently selected cell | ||
- `args.column`: `CalculatedColumn<TRow, TSummaryRow>` - column object of the currently selected cell | ||
###### `onScroll?: Maybe<(event: React.UIEvent<HTMLDivElement>) => void>` | ||
@@ -203,0 +213,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
793431
7229
362