Skip to main content

table

Function table 

Source
pub fn table<R>(ui: &mut Ui, content: impl FnOnce(&mut TableRows<'_>) -> R) -> R
Expand description

A table component following shadcn/ui design

§Example

table(ui, |mut rows| {
    header_row(&mut rows, |cells| {
        cell(cells, "Name");
        cell(cells, "Status");
    });
    row(&mut rows, |cells| {
        cell(cells, "Alice");
        cell(cells, "Active");
    });
});