Skip to content

umb-table does not support clip-text for column #20769

@enkelmedia

Description

@enkelmedia

Which Umbraco version are you using?

17.0.0-rc1

Bug summary

As far as I can tell, there is no way to add the clip-text attribute on a cell in umb-table. It would be nice if the "Overflow Detection" feature of uui-table was exposed when used via umb-table.

Specifics

The sample from the docs https://uui.umbraco.com/?path=/docs/uui-table--docs shows that the clip-text attribute should be used to activate the overflow detecton.

<uui-table-cell clip-text>Block List Editor</uui-table-cell>

Maybe we could add some kind of optional setting on UmbTableColumn and then in table.element.ts update _renderRowCell() to be like

<uui-table-cell .clip-text=${column.clipText}>
   ${this._renderCellContent(column, item)}
</uui-table-cell>

Steps to reproduce

..

Expected result / actual result

Let me know if the purposed approach would be decent then I can add a PR for upcoming versions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions