Table
The inevitable HTML table
You can create a table by setting a souce data
to it and defining
columns using the Table.Column
component.
Album | Released | Artist |
---|---|---|
The Dark Side of the Moon | March 1, 1973 | Pink Floyd |
OK Computer | June 16, 1997 | Radiohead |
Disraeli Gears | November 2, 1967 | Cream |
Physical Graffiti | February 24, 1975 | Led Zeppelin |
<Table data={{ album <- @albums }} rowClass={{ &rowClass/2 }} bordered>
<Column label="Album">
{{ album.name }}
</Column>
<Column label="Released">
{{ album.released }}
</Column>
<Column label="Artist">
<a href="#">{{ album.artist }}</a>
</Column>
</Table>
# Public API
Table.Column
Defines a column for the parent table component
The column instance is automatically added to the table's
cols
slot.