Skip to content

Table

Tables display data in rows and columns. They order information so that people can easily scan and analyse data.

Relies on the third-party libraryDataTablesfor its features and functionality.View all resources
Ask a dev lead for more documentation on this component.

Ask a dev lead for more documentation on this component.

<table id="myTable" class="data-table" width="100%" data-archive="" data-source="">
<thead>
<tr>
<th data-prop="columnHeader" class="" data-type="">columnHeader</th>
</tr>
</thead>
</table>
<script>
System.import('tables').then(function () {
$('#myTable').tablify({
});
});
</script>

Cell typeAlignmentPropertyTD classCopy

  1. string
    left
    data-type=“string”
    string-cell
  2. link
    left
    data-type=“link”
    link-cell
  3. date
    left
    data-type=“date”
    datetime-cell
  4. number
    right
    data-type=“number”
    number-cell
  5. percent
    right
    data-type=“percent”
    percent-cell
  6. fraction
    right
    data-type=“fraction”
    fraction-cell
  7. decimal
    right
    data-type=“decimal
    decimal-cell
  8. proper fraction
    right
    data-type=“properFraction”
    properFraction-cell
  9. boolean
    center
    data-type=“boolean”
    bool-cell
    (outputs check icon if true)
  10. string array
    left
    data-type=“stringArray”
    stringArray-cell
  11. blank
    left
    escaped-cell

Study Project Licenses Actions
ABC-123 ABC 2 Edit
ABC-456 ABC 10 Edit
DEF-123 DEF 102 Edit
<table class="table">
<thead>
<tr>
<th>…</th>
<th>…</th>
<th class="text-right">…</th>
<th class="text-center">…</th>
</tr>
</thead>
<tbody>
<tr>
<td>…</td>
<td>…</td>
<text-right">…</td>
<text-center">…</td>
</tr>
</tbody>
</table>

NameCodeCopy

  1. Bordered
    <table class=“table table-bordered”>
  2. Align text left (default)

    no class needed
  3. Align text right (add to td or th)

    <td class=“text-right”>
  4. Align text center (add to td or th)

    <td class=“text-center”>