Table

The <table> tag is a powerful way to display tabular data. Like in HTML each row of the table need to be described by <tr> and every column by <td>.

It can only be used within a <body>.

Example

<table 
  align="left" 
  fontSize="20" 
  spaceAfter="30" 
  widths="2.5cm 3cm 3cm"
>
  <tr>
    <td><text><b>#</b></text></td>
    <td><text><b>First Name</b></text></td>
    <td><text><b>Last Name</b></text></td>
  </tr>
  <tr>
    <td>1</td>
    <td>Thorben</td>
    <td>Croisé</td>
  </tr>
  <tr>
    <td>2</td>
    <td>Tijana</td>
    <td>Bambole</td>
  </tr>
</table>

Attributes

class

The styleclass to be applied to all content

widths (optional)

The widths property allows you to finely control the widths of the table columns. Add a space separated list of widths per column here, e.g. "1cm 15mm 6cm 22mm"

Last updated