pub struct EuvSidebarProps {
pub route_signal: Signal<String>,
pub collapsed: Signal<Vec<String>>,
pub items: &'static [EuvSidebarItem],
pub prefix: String,
}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).
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 Freeze for EuvSidebarProps
impl RefUnwindSafe for EuvSidebarProps
impl Send for EuvSidebarProps
impl Sync for EuvSidebarProps
impl Unpin for EuvSidebarProps
impl UnsafeUnpin for EuvSidebarProps
impl UnwindSafe 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