2.0.0-alpha.30 • Published 6 years ago
@jdl2/table v2.0.0-alpha.30
The data table is a basic table used to display columnar data using a simple declarative syntax.
Simply define as many Table.Col
children with header
and cell
props to get a basic table:
<Table items={users}>
<Table.Col header="Username" expand>{user => user.username}</Table.Col>
<Table.Col header="Country">{user => user.country}</Table.Col>
</Table>
const users = [
{
username: 'Joe',
country: 'USA',
},
{
username: 'Vincent',
country: 'France',
},
];
<Table items={users}>
<Table.Col header="Username">{user => user.username} expand</Table.Col>
<Table.Col header="Country">{user => user.country}</Table.Col>
</Table>;
2.0.0-alpha.30
6 years ago
2.0.0-alpha.29
6 years ago
2.0.0-alpha.27
6 years ago
2.0.0-alpha.25
6 years ago
2.0.0-alpha.18
6 years ago
2.0.0-alpha.17
6 years ago
2.0.0-alpha.15
6 years ago
2.0.0-alpha.14
6 years ago
2.0.0-alpha.10
6 years ago