You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Combobox] Improve long entries rendering with truncation #5997
Just leaving some feedback while refactoring some Lens code which uses the EuiComboBox with some long option strings.
The use case for the EuiComboBox is about selecting fields, which can have very long names, hence the need to provide a better rendering than the default behaviour in the combobox. @mbondyra came up with this logic about computing the width of the element and passing such information into a truncation rendering component for the label:
It would be nice to have a truncation feature out of the box within the EuiComboBox component.
I can imagine an API like truncation: { width: number, ellipsis?: 'initial' | 'end' | 'middle' } | false where the width is used to automatically compute the font size and the ellipsis positioning.
Reacted by Andrea Del Rio, Davis McPhee and Matthias Polman
I would love for this feature to be part of our general EuiSelectable component! Would either of you be willing to contribute directly to EUI? I took a look at that file but I'm not actually understanding how it works.
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
Activity
cchaos commentedon Jun 24, 2022
I would love for this feature to be part of our general EuiSelectable component! Would either of you be willing to contribute directly to EUI? I took a look at that file but I'm not actually understanding how it works.
chandlerprall commentedon Jun 24, 2022
Relates to #2082 , which looks like it recommends exploring exactly this solution 😅
+1 to the ask if you are able to help implement this
mbondyra commentedon Jul 3, 2022
I'd be happy to help with implementation once I am done with my current task, sounds exciting!
github-actions commentedon Dec 30, 2022
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
github-actions commentedon Jan 6, 2023
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.
dej611 commentedon Jan 9, 2023
I think this is still valuable to implement
github-actions commentedon Jul 9, 2023
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
cee-chen commentedon Sep 18, 2023
Closed by #7028