pub struct NavItem {
pub title: Rc<Dynamic>,
pub value: Rc<Dynamic>,
pub selection: Rc<Binding>,
pub icon: Icon,
pub badge: Option<Rc<Dynamic>>,
pub deps: StateSet,
}Expand description
A sidebar row, selected while selection holds value.
Fields§
§title: Rc<Dynamic>§value: Rc<Dynamic>§selection: Rc<Binding>§icon: Icon§badge: Option<Rc<Dynamic>>§deps: StateSetEverything the row shows depends on: its texts and its selection.
Trait Implementations§
Auto Trait Implementations§
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