-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate aggrid into v33 #667
Conversation
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 question and 1 minor change, else good to me.
@@ -66,7 +66,6 @@ export const CustomAGGrid = React.forwardRef<AgGridReact, CustomAGGridProps>((pr | |||
<AgGridReact | |||
ref={ref} | |||
getLocaleText={getLocaleText} | |||
suppressPropertyNamesCheck | |||
onColumnResized={onColumnResized} | |||
enableCellTextSelection | |||
{...agGridReactProps} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still use the old styling system.
{...agGridReactProps} | |
theme="legacy" | |
{...agGridReactProps} |
@@ -92,7 +83,7 @@ export interface CustomAgGridTableProps { | |||
defaultColDef: unknown; | |||
pagination: boolean; | |||
paginationPageSize: number; | |||
suppressRowClickSelection: boolean; | |||
rowSelection?: RowSelectionOptions | 'single' | 'multiple'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would prefer
rowSelection?: RowSelectionOptions | 'single' | 'multiple'; | |
rowSelection?: AgGridReactProps['rowSelection']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dunno if the provideGlobalGridOptions({ theme: 'legacy' });
in fronts also affect the ones in this library 🤔
@@ -243,11 +234,10 @@ export function CustomAgGridTable({ | |||
onGridReady={onGridReady} | |||
getLocaleText={getLocaleText} | |||
cacheOverflowSize={10} | |||
rowSelection="multiple" | |||
rowSelection={rowSelection || 'multiple'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rowSelection={rowSelection || 'multiple'} | |
rowSelection={rowSelection ?? 'multiple'} |
@@ -259,7 +249,6 @@ export function CustomAgGridTable({ | |||
getRowId={(row) => row.data[FieldConstants.AG_GRID_ROW_UUID]} | |||
pagination={pagination} | |||
paginationPageSize={paginationPageSize} | |||
suppressRowClickSelection={suppressRowClickSelection} | |||
alwaysShowVerticalScroll={alwaysShowVerticalScroll} | |||
stopEditingWhenCellsLoseFocus={stopEditingWhenCellsLoseFocus} | |||
{...props} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still use the old styling system.
{...props} | |
theme="legacy" | |
{...props} |
Quality Gate passedIssues Measures |
No description provided.