Skip to content
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

Merged
merged 1 commit into from
May 22, 2024

Conversation

mhwaage
Copy link
Contributor

@mhwaage mhwaage commented Mar 19, 2024

Forwards multiRowSelection options to tanstack, allowing users to enable/disable multi row selection.

Copy link
Contributor

@yusijs yusijs left a 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,
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Collaborator

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?

Copy link
Contributor

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.

Copy link
Contributor

@magnh magnh left a 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 💯

@oddvernes oddvernes merged commit c8dcb0c into equinor:develop May 22, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants