support custom column width

This commit is contained in:
Mads Rasmussen
2023-02-06 12:51:44 +01:00
parent 3c7e2fdd7b
commit 6c0b259712
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ export class UmbDocumentTableActionColumnLayoutElement extends LitElement {
css`
#action-menu-popover {
display: block;
text-align: right;
}
#action-menu-dropdown {
overflow: hidden;

View File

@@ -284,7 +284,7 @@ export class UmbTableElement extends LitElement {
}
private _renderRowCell(column: UmbTableColumn, item: UmbTableItem) {
return html`<uui-table-cell
return html`<uui-table-cell style="width: ${column.width || 'auto'}"
>${this._renderCellContent(column, item)}</uui-table-cell
>
</uui-table-cell>`;