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

EDS Data Grid Feature: onRowContextMenu #3658

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

tlastad
Copy link
Contributor

@tlastad tlastad commented Oct 18, 2024

I have added a onRowContextMenu feature to allow for right-click on table rows.
We need this to be able to use context menus on tables generated using Eds Data Grid.

onRowContextMenu works the same as the already existing onRowClick functionality. It just uses the other mouse button.

Tests and storybook is updated, and runs.
If there's anything I've missed, please let me know.

@yusijs
Copy link
Contributor

yusijs commented Oct 21, 2024

Feature looks good (aside from the comment I added re. Popover). Someone from the core team would need to do the final review though (pinging @oddvernes)

@tlastad
Copy link
Contributor Author

tlastad commented Oct 21, 2024

I changed it to use a menu instead, as that is more in line with what it probably will be used for.

Copy link
Collaborator

@oddvernes oddvernes 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! Approved!

@oddvernes oddvernes merged commit 5058acf into equinor:develop Oct 21, 2024
4 of 6 checks passed
@tlastad
Copy link
Contributor Author

tlastad commented Oct 21, 2024

Thank you :)

@tlastad tlastad deleted the OnRowContextMenu branch October 21, 2024 11:53
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.

3 participants