-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiBasicTable/Flex layouts] Support for multi line truncation. #7226
Labels
Comments
Thank you for the submission @walterra. The EUI team will triage this in our weekly Monday backlog meeting. |
@walterra Just curious, any preference on the API/name? Here's what I currently have: <EuiBasicTable
columns={[
{
field: 'myField',
name: 'My field',
truncateText: { lines: 2 },
valign: 'middle',
}
]}
/> For contrast, EuiDataGrid uses <EuiDataGrid
rowHeightsOptions={{
defaultHeight: { lineCount: 2 },
}}
/> |
8 tasks
Thanks for looking into this! Don't have a strong preference, but maybe good to keep in sync with data grid. |
7 tasks
Merged
3 tasks
walterra
added a commit
to elastic/kibana
that referenced
this issue
Oct 30, 2023
…sts (#169830) Makes use of EUI's new multi-line truncation option for table columns (elastic/eui#7226). For columns that use this feature, this PR wraps the text in custom render functions which add a `span` element with a `title` attribute and the cells text.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment EUI table columns support
truncateText
which works great for single lines. An additional option to support multi-line truncation would be great. There's some prior art spread across in Kibana with custom code which looks like there are use cases for both table columns and flex layouts.Here's an example for custom code for a column's
render
function forEuiBasicTable
using-webkit-line-clamp
to achieve multi-line truncation.The text was updated successfully, but these errors were encountered: