Skip to main content

table

Function table 

Source
pub fn table() -> Div
Expand description

Create a table container

The table is a flex-column container that holds thead, tbody, and tfoot sections.

§Example

table()
    .w_full()
    .rounded(8.0)
    .bg(Color::from_hex(0x1a1a1a))
    .child(thead().child(tr().child(th("Column"))))
    .child(tbody().child(tr().child(td("Data"))))