-
Notifications
You must be signed in to change notification settings - Fork 842
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
OnColumnResize DataGrid #2963
OnColumnResize DataGrid #2963
Conversation
* onColumnResize DataGrid prop * onColumnResize test * simple console log callback for datagrid example
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
💚 CLA has been signed |
@jvince I've held off reviewing this as it was opened as a Draft; is this ready to be looked at? |
Yes, it is ready to be looked at. I would have a question: I'm not sure if it's safe to call a callback function in Is it enough to pass columnId and width on the column resize? interface |
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.
One small request on a name, one question, and also:
Please add an entry to CHANGELOG.md, something like this existing entry:
- Added
isSortable
props toEuiDataGridColumn
andEuiDataGridSchemaDetector
to mark them as un-sortable (#2952)
* Renamed `EuiDataGridOnColumnResizeEvent` to `EuiDataGridOnColumnResizeHandler` for clarity * Renamed `EuiDataGridColumnResizeEventData` to `EuiDataGridOnColumnResizeData` for clarity * Removed useCallback `setColumnWidth`
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.
Changes LGTM; Pulled & tested locally
jenkins test this |
Fixed CL conflict. Will merge on green. Thank you for the sub. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2963/ |
jenkins test this Looks like a flaky unit test failed |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2963/ |
Thanks @jvince ! |
Summary
Provide capability to be able to react when the DataGrid column size changes. Possible use case would be for example storing column widths into the local storage.
Checklist