pub struct EuvSidebarProps {
pub route_signal: Signal<String>,
pub collapsed: Signal<Vec<String>>,
pub items: &'static [EuvSidebarItem],
pub prefix: String,
pub on_navigate: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_sidebar component.
The collapsed signal is caller-owned so several sidebars (desktop aside
and mobile drawer) can share the collapse state; prefix is internal and
used by the recursion to key groups.
Fields§
§route_signal: Signal<String>The current route signal (drives the active link highlight).
collapsed: Signal<Vec<String>>The collapsed group keys.
items: &'static [EuvSidebarItem]The tree items.
prefix: StringThe group key prefix (internal recursion state, leave default).
Optional navigation interceptor receiving the target link; when set it
replaces the default Router::navigate (used by drawers to close via
the overlay stack).
Trait Implementations§
Source§impl Clone for EuvSidebarProps
impl Clone for EuvSidebarProps
Source§fn clone(&self) -> EuvSidebarProps
fn clone(&self) -> EuvSidebarProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EuvSidebarProps
impl Debug for EuvSidebarProps
Source§impl Default for EuvSidebarProps
impl Default for EuvSidebarProps
Source§fn default() -> EuvSidebarProps
fn default() -> EuvSidebarProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvSidebarProps
impl !Send for EuvSidebarProps
impl !Sync for EuvSidebarProps
impl !UnwindSafe for EuvSidebarProps
impl Freeze for EuvSidebarProps
impl Unpin for EuvSidebarProps
impl UnsafeUnpin for EuvSidebarProps
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