pub struct ItemList {
pub id: String,
pub items: Vec<Item>,
pub multi: bool,
pub filter: Option<String>,
pub empty: Option<String>,
}Expand description
A Widget::Items: rows a click selects (PanelEvent::Select), or
with multi a click with Ctrl adds to (PanelEvent::Selection), a
double click opens (PanelEvent::Activate); the pointer over one is
told as PanelEvent::Hover, so the bench lights it in the view.
Fields§
§id: String§items: Vec<Item>§multi: bool§filter: Option<String>The FilterField that narrows it, by its id.
empty: Option<String>Shown when nothing is listed, or nothing passes the filter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemList
impl<'de> Deserialize<'de> for ItemList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ItemList
Auto Trait Implementations§
impl Forget for ItemList
impl Freeze for ItemList
impl Move for ItemList
impl RefUnwindSafe for ItemList
impl Send for ItemList
impl Sync for ItemList
impl Unpin for ItemList
impl UnsafeUnpin for ItemList
impl UnwindSafe for ItemList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more