Sigil

Table

A sortable, filterable table.

GUITUIRuns in the browsertable

Preview

Table, Default, light themeTable, Default, dark theme

Usage example

fn table_demo(selected: bool) -> TableBuilder<Repo> {    let rows = TableState::new(        vec![            repo("sigil", "Rust", 4210),            repo("wgpu", "Rust", 12800),            repo("helix", "Rust", 36000),        ],        repo_columns(),    );    if selected {        rows.select_only(1);    }    table(rows).striped().viewport_height(160.0)}
fn table_demo(  selected: bool,) -> TableBuilder<Repo> {  let rows = TableState::new(    vec![      repo("sigil", "Rust", 4210),      repo("wgpu", "Rust", 12800),      repo("helix", "Rust", 36000),    ],    repo_columns(),  );  if selected {    rows.select_only(1);  }  table(rows)    .striped()    .viewport_height(160.0)}

States

All 6 captured states, each drawn by the window host and by the terminal host.

  • Table, Default, light themeTable, Default, dark theme
    Default
  • Table, Hover, light themeTable, Hover, dark theme
    Hover
  • Table, Pressed, light themeTable, Pressed, dark theme
    Pressed
  • Table, Focused, light themeTable, Focused, dark theme
    Focused
  • Table, Disabled, light themeTable, Disabled, dark theme
    Disabled
  • Table, Selected, light themeTable, Selected, dark theme
    Selected

API

NameSignaturePurpose
tablefn table<Row>(state: TableState<Row>) -> TableBuilder<Row>A sortable, filterable table.