Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
#[prop_or(22)]
#[builder]
pub min_row_height: u64,
+
+ /// Add a line as separator between list items.
+ #[prop_or_default]
+ #[builder]
+ pub separator: bool,
}
impl List {
.key(format!("row-{index}"))
.force_height(0)
.tile_pos(index)
+ .separator(props.separator)
.resize_callback(Some(self.tile_resize_callback.clone()));
//row.set_attribute("role", "listitem");
let row = ListTileObserver::new(props.renderer.emit(pos))
.key(format!("row-{pos}"))
.tile_pos(pos)
+ .separator(props.separator)
.resize_callback(Some(self.tile_resize_callback.clone()));
content.add_child(row);