You are here:
Table Header
Define a header cell in the table.
Required Editions
| Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled. |
The attributes supported by the th element are:
| Attribute | Description | Values / Pattern | Required |
|---|---|---|---|
| colSpan | Defines the number of columns a cell should span. | String | No |
| rowSpan | Defines the number of rows a cell should span. | String | No |
| bold | Displays a text in bold formatting. | Boolean | No |
| italics | Displays a text in italic formatting. | Boolean | No |
| alignment | Aligns the intended text to the left, or to the right, or to the center. | String | No |
| width | Defines the width of a table cell. If the width is specified for several tr and td nodes within the tbody element, the width of the first tr node is considered and the width of the remaining nodes is ignored. | auto or a positive integer | No |
The th element can contain these child elements:
- text
- img
- pageNumber
Sample Code
<th width="75">{{Labels::PrdNumberId; defaultLabel=No.}}</th>
<th width="*">{{Labels::TextId; defaultLabel=Product}}</th>
<th width="25" alignment="center">{{Labels::UnitId; defaultLabel=Unit}}</th>Did this article solve your issue?
Let us know so we can improve!

