Merge pull request #191 from hydra/add-clear-to-widget-list

Add `clear` to `WidgetList`
This commit is contained in:
Jonathan Johnson 2024-10-19 13:50:18 -07:00 committed by GitHub
commit f08b7064ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2156,6 +2156,11 @@ impl WidgetList {
self.ordered.truncate(length);
}
/// Clear the list
pub fn clear(&mut self) {
self.ordered.clear();
}
/// Returns `self` as a vertical [`Stack`] of rows.
#[must_use]
pub fn into_rows(self) -> Stack {