@toolbox-web/grid-react 0.0.4 → 0.1.0
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 +12 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -385,7 +385,7 @@ import { SelectionPlugin, FilteringPlugin } from '@toolbox-web/grid/all';
|
|
|
385
385
|
|
|
386
386
|
## Custom Styles
|
|
387
387
|
|
|
388
|
-
Inject custom CSS into the grid
|
|
388
|
+
Inject custom CSS into the grid:
|
|
389
389
|
|
|
390
390
|
```tsx
|
|
391
391
|
<DataGrid
|
|
@@ -435,17 +435,17 @@ import type {
|
|
|
435
435
|
|
|
436
436
|
### DataGrid Props
|
|
437
437
|
|
|
438
|
-
| Prop | Type | Description
|
|
439
|
-
| -------------- | ------------------------------------------ |
|
|
440
|
-
| `rows` | `TRow[]` | Row data to display
|
|
441
|
-
| `columns` | `ColumnConfig[]` | Column definitions
|
|
442
|
-
| `gridConfig` | `GridConfig` | Full configuration object
|
|
443
|
-
| `fitMode` | `'stretch' \| 'fit-columns' \| 'auto-fit'` | Column sizing mode
|
|
444
|
-
| `editOn` | `'click' \| 'dblclick' \| 'none'` | Edit trigger
|
|
445
|
-
| `customStyles` | `string` | CSS to inject into
|
|
446
|
-
| `onRowsChange` | `(rows: TRow[]) => void` | Rows changed callback
|
|
447
|
-
| `onCellEdit` | `(event: CustomEvent) => void` | Cell edited callback
|
|
448
|
-
| `onRowClick` | `(event: CustomEvent) => void` | Row clicked callback
|
|
438
|
+
| Prop | Type | Description |
|
|
439
|
+
| -------------- | ------------------------------------------ | ------------------------- |
|
|
440
|
+
| `rows` | `TRow[]` | Row data to display |
|
|
441
|
+
| `columns` | `ColumnConfig[]` | Column definitions |
|
|
442
|
+
| `gridConfig` | `GridConfig` | Full configuration object |
|
|
443
|
+
| `fitMode` | `'stretch' \| 'fit-columns' \| 'auto-fit'` | Column sizing mode |
|
|
444
|
+
| `editOn` | `'click' \| 'dblclick' \| 'none'` | Edit trigger |
|
|
445
|
+
| `customStyles` | `string` | CSS to inject into grid |
|
|
446
|
+
| `onRowsChange` | `(rows: TRow[]) => void` | Rows changed callback |
|
|
447
|
+
| `onCellEdit` | `(event: CustomEvent) => void` | Cell edited callback |
|
|
448
|
+
| `onRowClick` | `(event: CustomEvent) => void` | Row clicked callback |
|
|
449
449
|
|
|
450
450
|
### GridColumn Props
|
|
451
451
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolbox-web/grid-react",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "React adapter for @toolbox-web/grid data grid component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"react-dom": "^19.0.0",
|
|
41
41
|
"@types/react": "^19.0.0",
|
|
42
42
|
"@types/react-dom": "^19.0.0",
|
|
43
|
-
"@toolbox-web/grid": ">=0.
|
|
43
|
+
"@toolbox-web/grid": ">=0.4.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=18.0.0",
|
|
47
47
|
"react-dom": ">=18.0.0",
|
|
48
|
-
"@toolbox-web/grid": ">=0.
|
|
48
|
+
"@toolbox-web/grid": ">=0.4.0"
|
|
49
49
|
}
|
|
50
50
|
}
|