pub struct EuvAnchorProps {
pub items: Vec<EuvAnchorItem>,
pub title: &'static str,
pub active: Signal<String>,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_anchor component.
Defines the strongly-typed interface for an anchor list: the entries it holds and the entry that is currently the active one.
Fields§
§items: Vec<EuvAnchorItem>The anchor entries, in display order.
title: &'static strThe heading above the entries (skipped when empty).
active: Signal<String>The value of the entry that is currently active.
on_select: Option<Rc<dyn Fn(&'static str)>>The callback fired when an entry is taken.
Trait Implementations§
Source§impl Clone for EuvAnchorProps
impl Clone for EuvAnchorProps
Source§impl Debug for EuvAnchorProps
impl Debug for EuvAnchorProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvAnchorProps
impl !Send for EuvAnchorProps
impl !Sync for EuvAnchorProps
impl !UnwindSafe for EuvAnchorProps
impl Freeze for EuvAnchorProps
impl Unpin for EuvAnchorProps
impl UnsafeUnpin for EuvAnchorProps
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