Add an empty state to the notification panel
This commit is contained in:
parent
522b76e452
commit
c66385f0f9
2 changed files with 22 additions and 3 deletions
|
@ -378,6 +378,10 @@ impl<V: 'static> ListState<V> {
|
|||
.extend((0..element_count).map(|_| ListItem::Unrendered), &());
|
||||
}
|
||||
|
||||
pub fn item_count(&self) -> usize {
|
||||
self.0.borrow().items.summary().count
|
||||
}
|
||||
|
||||
pub fn splice(&self, old_range: Range<usize>, count: usize) {
|
||||
let state = &mut *self.0.borrow_mut();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue