ListView update.
@@ -28,7 +28,7 @@ impl State for ListViewState {
let count = ctx.widget().clone_or_default::<usize>("count");
let entity = ctx.entity;
- if count != self.count {
+ if count != self.count && *ctx.widget().get::<bool>("dirty") {
if let Some(builder) = &self.builder {
ctx.clear_children_of(self.items_panel);
@@ -224,7 +224,10 @@ widget!(
selected: bool,
/// Sets or shares the parent id.
- parent: u32
+ parent: u32,
+
+ /// Use this flag to force the redrawing of the items.
+ dirty: bool
}
);
