-
Notifications
You must be signed in to change notification settings - Fork 66
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
Allow enabling/disabling multi row selection in eds-data-grid #3355
Conversation
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.
LGTM!
@@ -227,6 +228,7 @@ export function EdsDataGrid<T>({ | |||
debugHeaders: debug, | |||
debugColumns: debug, | |||
enableRowSelection: rowSelection ?? false, | |||
enableMultiRowSelection: multiRowSelection, |
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.
I would recommend using the same property name as the library.
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.
That's reasonable - I wrote it like this to match the syntax of enableRowSelection
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.
@torleifhalseth The enable
prefix was added to make it clearer what the prop does. I'd argue that prefixing enableMultiRowSelection
as well makes sense, given this.
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.
have we concluded on this? Is there any further work needed or can i merge this?
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.
Imo we can leave it as is, since it matches the pattern for enableRowselection already in place.
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.
Looks good to me! This will be great to have 💯
Forwards multiRowSelection options to tanstack, allowing users to enable/disable multi row selection.