List row
One row of a list.
GUITUIRuns in the browser
list_rowPreview
























Usage example
fn list_row_demo(selected: bool) -> NodeBuilder { list_row(selected, "Build finished", "now") }fn list_row_demo( selected: bool,) -> NodeBuilder { list_row( selected, "Build finished", "now", )}fn list_row_tree_demo(selected: bool) -> NodeBuilder { let entry = |depth, disclosure, title: &'static str, on: bool| { list_row_with( on, title, ListRowSlots { depth, disclosure, ..ListRowSlots::default() }, ) }; container() .layout(LayoutStyle::flex_column().fill_width().gap(2.0)) .child(entry(0, Disclosure::Expanded, "src", false)) .child(entry(1, Disclosure::Collapsed, "widgets", selected)) .child(entry(1, Disclosure::Leaf, "lib.rs", false)) .child(entry(0, Disclosure::Collapsed, "examples", false)) }fn list_row_tree_demo( selected: bool,) -> NodeBuilder { let entry = |depth, disclosure, title: &'static str, on: bool| { list_row_with( on, title, ListRowSlots { depth, disclosure, ..ListRowSlots::default() }, ) }; container() .layout( LayoutStyle::flex_column() .fill_width() .gap(2.0), ) .child(entry( 0, Disclosure::Expanded, "src", false, )) .child(entry( 1, Disclosure::Collapsed, "widgets", selected, )) .child(entry( 1, Disclosure::Leaf, "lib.rs", false, )) .child(entry( 0, Disclosure::Collapsed, "examples", false, ))}States
Default

Default
Hover
Pressed
Focused
Selected
Tree

Default
Hover
Selected
API
| Name | Signature | Purpose |
|---|---|---|
list_row | fn list_row(selected: bool, title, detail) -> NodeBuilder | One row of a list. |