-
Notifications
You must be signed in to change notification settings - Fork 843
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
EuiDataGrid cellAction and expand popover #5132
Comments
We're currently focusing on the row height selector (#5080) for the Discover team, but will pick up these cell action patterns & changes next. |
Hey @mdefazio! I'm spiking this out currently and wanted to ask you about the express need for some kind of way to mark Can we instead opt to use array order as the logic for truncating actions? So the first two actions are always shown/primary, and all actions after that are considered secondary and only show up in the expansion popover? I think "the first two actions are primary" is honestly more straightforward, unless I'm missing some context/a use-case. |
@constancecchen Yes, I think that's absolutely reasonable. We discussed defaulting to doing it this way previously and I agree it makes it more straightforward. I believe the |
One more quick implementation question I just came across: if a consumer has more than 2 actions but sets Or do we assume that consumers should know what they're doing, and if they deliberately turn off/set |
Ah, actually, I think I may have mistakenly broken this behavior in #5592. Based on our props documentation of Any objections if I change our internal code accordingly and add more documentation to note that adding |
Sounds right to me 👍 |
@MikePaquette @mchopda - tagging you in on this issue as it's the one to discuss design decisions on. @mdefazio, any chance you can help out here and address Security's concerns about the 2 cellActions limit? I believe they currently show/want 3 on Security data grids. |
Reopened our previous discussion. |
A small note to the above that requirements were added to add a prop to the data-grid configuration as discussed here #5089 (reply in thread) . Essentially the request is to add a A separate, strong suggestion is that width adjustable columns should have a set minimum width, with an addition pixel value for each These suggestions are pseudo-code. If the EUI team has a better manner to name / make this functionality available feel free to adjust. Similar with any suggestions of how to calculate minimum width of columns. |
Request for update to options for EuiDataGrid cellAction
Reason for change
As more Solutions are using the EuiDataGrid for a wider range of use cases, we should consider baking in some guidelines to the component alongside best practices so we can remain consistent in our usage across Kibana.
Proposed change
One of our recommendations is that no more than 3 icons should be visible on hover (including the expand action). However, we have several use cases where additional actions are required.
Currently, it is possible to add as many actions as desired. However, we should follow a similar rationale as the
EuiBasicTable
.For the purposes of the
EuiDataGrid
, the ellipses icon is replaced with the expand icon on a cell.Example:

Implementation:
So with this in mind, we can (somehow) mark actions as primary and display up to the first 2 actions as the exposed hover actions. Within the expand popover, display these same actions in a horizontal row (current display option). Non-primary actions would not be visible on hover within the cell, and display in a vertical list below the primary actions row within the popover.
If no primary actions are found, then no actions (aside from expand) are shown on hover and all actions are displayed as a list within the popover.
The text was updated successfully, but these errors were encountered: