pub fn table<'a, R>(
columns: &[Column<'a>],
rows: &[R],
sizing: &Sizing<'_>,
style: &TableStyle,
width: u16,
) -> Table<'a>Expand description
A described table, sized and narrowed for width.
Hands back a Table rather than drawing one. Selection and scroll live in
the app’s TableState, and the row highlight
is already set from TableStyle::selected, so a caller renders this with
render_stateful_widget and gets the house selection without saying anything
further.
width is the area the table will be drawn in, which is what narrowing is
decided against. Pass the Rect width that
frame handed back rather than the region’s own, or the
table budgets for the two cells the edge took.