@linzjs/step-ag-grid 10.0.0 → 10.0.2
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/package.json
CHANGED
package/src/components/Grid.tsx
CHANGED
|
@@ -316,6 +316,11 @@ export const Grid = (params: GridProps): JSX.Element => {
|
|
|
316
316
|
}
|
|
317
317
|
}, [columnDefs?.length, sizeColumnsToFit]);
|
|
318
318
|
|
|
319
|
+
const defaultColDef = useMemo(
|
|
320
|
+
() => ({ wrapHeaderText: true, autoHeaderHeight: true, ...params.defaultColDef }),
|
|
321
|
+
[params.defaultColDef],
|
|
322
|
+
);
|
|
323
|
+
|
|
319
324
|
return (
|
|
320
325
|
<div
|
|
321
326
|
data-testid={params["data-testid"]}
|
|
@@ -344,7 +349,7 @@ export const Grid = (params: GridProps): JSX.Element => {
|
|
|
344
349
|
<AgGridReact
|
|
345
350
|
animateRows={params.animateRows}
|
|
346
351
|
rowClassRules={params.rowClassRules}
|
|
347
|
-
defaultColDef={
|
|
352
|
+
defaultColDef={defaultColDef}
|
|
348
353
|
getRowId={(params) => `${params.data.id}`}
|
|
349
354
|
suppressRowClickSelection={true}
|
|
350
355
|
rowSelection={params.rowSelection ?? "multiple"}
|