Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.9.0 <= v < 1.0.0

Ui.Table

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

States

width
:
Number
=
0

A state to hold the width of the component.

Properties

bordered
:
Bool
=
true

Whether or not the table has borders.

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(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: asc or desc

rows
:
Array(Tuple(String, Array(Ui.Cell)))
=
[]

The data for the rows.

size
:
Ui.Size
=
Ui.Size::Inherit

The size of the component.

Functions

render
:
Html

Renders the table.

updateWidth
(
dimensions
:
Dom.Dimensions
)

Updates the width state based on the dimensions and breakpoint.