TableHeaderCell
<ui5-table-header-cell>
| Since 2.0.0This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
The ui5-table-header-cell
component represents a column in the ui5-table
.
As it is tightly coupled to the ui5-table
, it should only be used in the ui5-table-header-row
to ensure correct layout and design.
ES6 Module Import​
import "@ui5/webcomponents/dist/TableHeaderCell.js";
Properties​
width​
minWidth​
maxWidth​
importance​
horizontalAlign​
Slots​
default​
Events​
No events available for this component.
Methods​
No methods available for this component.
CSS Parts​
No CSS parts available for this component.
Column widths​
You are able to set the width of the columns by using the width
, minWidth
and maxWidth
property.
Popin Configuration​
The Popin mode is a responsive design feature tailored to adapt column layouts in UI grids or tables, particularly for smaller screens or constrained container widths.
When screen space becomes limited, Popin mode seamlessly reorganizes columns. Those that cannot fit within the available width are intelligently relocated to the "popin area", an allocated space designed specifically for accommodating additional columns.
You can influence the order of columns appearing the popin area, by defining the importance of each column.
Horizontal cell alignment​
Controls the horizontal alignment of cells by using the horizontalAlign
property.
Please note that the behavior of horizontalAlign
depends on where you set it:
horizontalAlign
is set onTableHeaderCell
level
Changes the horizontal alignment of theTableHeaderCell
and its correspondingTableCell
.horizontalAlign
is set onTableCell
level only
The horizontal alignment is only changed for this oneTableCell
horizontalAlign
is set onTableHeaderCell
andTableCell
level
Changing thehorizontalAlign
property onTableHeaderCell
level changes only theTableHeaderCell
itself and thoseTableCell
without ahorizontalAlign
property.