Try Install Learn Blog API Packages GitHub
Pages

Ui.Table

A sortable table component, which collapses into a definition list on small screens.

States

mobile
:
Bool
=
false

Wether or not we are displaying the mobile version.

Properties

breakpoint
:
Number
=
1000

The breakpoint for the mobile version.

headers
:
Array(Ui.Table.Header)
=
[]

The data for the headers.

onOrderChange
:
Function(Tuple(String, String), Promise(Never, Void))
=
Promise.never1

The handler for the order change event.

orderBy
:
String
=
""

The sortKey of the column which the content is ordered by.

orderDirection
:
String
=
""

The order direction either "asc" or "desc".

rows
:
Array(Array(Ui.Cell))
=
[]

The data for the rows.

Functions

render
:
Html

Renders the table.