-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Change Kibana table column width using percents #134800
Comments
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@alytkowski Thanks for your suggestion! |
@constancecchen Would it possible to add support for it in EuiDataGrid? |
At first glance, my best guess is that it would be a moderate technical lift to implement, so not something we could quickly add. Feel free to open an issue in the EUI repo for it however! I'll also note that I'm not the definitive owner of EuiDataGrid, so don't take my word as 100% truth - @chandlerprall is + owner of the datagrid roadmap/priorities, so def feel free to ping him as well for feature & enhancement requests! |
This request is partially captured in elastic/eui#4019, specifically elastic/eui#4019 (comment). Unfortunately the difficulty isn't as much technical, but finding functional, discoverable, and accessible user interactions. |
@chandlerprall I'm not totally sure that's the same feature request - it sounds like the request here is to be able to set |
Re-reading the thread & comment I linked to, it does not cover this case. We've had the conversation before but apparently not in github.
Not only the initial width but the user's resize actions too,
We have this set up in EuiResizableContainer, where percentages are tracked and updating one affects its neighbor(s). At a technical level, adding this to the data grid would mean expanding the existing pixel-based widths to accept percentages, and similarly the callbacks would need to respond with a matching unit. I wonder if we could avoid user experience changes by just responding based on the column width type. Mixed types may be awkward when the dimensions change, but solvable if the app always uses percentages. |
Ahh I definitely missed the user resize context, apologies. ++ to everything you're saying! |
Pinging @elastic/eui-design (EUI) |
Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner. |
Describe the feature:
Change the code in a way, that resizing(customizing) the Kibana table columns(In Discover) is not performed statically, but by using percentage.
Describe a specific use case for the feature:
This would ensure that the columns autofit to the display resolution, but also maintain the custom column width.
Currently, to ensure that the column width autofit, you can't customize it, and as a result all of the columns width are the same - sometimes you'd want to have a field with larger column width and some other smaller - this has been working fine in the 8.1.1 version.
The text was updated successfully, but these errors were encountered: