@sheetxl/grid-react 0.8.0-beta.11 → 0.8.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/browser/esm/index.mjs +1383 -1314
- package/node/esm/index.mjs +1491 -1422
- package/package.json +3 -3
- package/types/src/cell/CellRenderer.d.ts +32 -0
- package/types/src/grid/Grid.d.ts +1 -1
- package/types/src/grid/IGrid.d.ts +4 -4
- package/types/src/header/HeaderDividerAnchor.d.ts +7 -1
- package/types/src/layer/RangeFloatLayer.d.ts +6 -1
- package/types/src/layer/RangeTooltip.d.ts +5 -0
- package/types/src/layer/RangeTooltipLayer.d.ts +1 -1
- package/types/src/layer/TooltipProvider.d.ts +10 -7
- package/types/src/layer/_Utils.d.ts +2 -0
- package/types/src/layer/useHoverIntent.d.ts +3 -3
- package/types/src/list/CheckboxList.d.ts +7 -1
- package/types/src/list/PickList.d.ts +6 -1
- package/types/src/range/Draggable.d.ts +7 -1
package/README.md
CHANGED
|
@@ -33,8 +33,10 @@ That's it — a virtualized grid that efficiently handles trillions of cells.
|
|
|
33
33
|
|
|
34
34
|
`renderCells` receives a `CellRendererProps`: `{ cell, range, bounds, value, style, pane }` (plus a
|
|
35
35
|
`key`). `style` is already positioned/sized for the cell — spread it onto your element. By default a
|
|
36
|
-
rendered cell is `pointer-events: none` so clicks fall through to the grid
|
|
37
|
-
|
|
36
|
+
rendered cell is `pointer-events: none` so clicks fall through to the grid. To make part of a cell
|
|
37
|
+
interactive — a checkbox, a button, a slider — spread `CELL_INTERACTIVE_PROPS` onto that element and
|
|
38
|
+
add its handlers as on any element: a plain press on it selects the cell, starts no drag-select, and
|
|
39
|
+
then reaches the element's own `onPointerDown`; a drag captures the pointer on the element itself.
|
|
38
40
|
|
|
39
41
|
## Why another grid?
|
|
40
42
|
|