pub struct EuvPageRouterProps {
pub route_signal: Signal<String>,
pub fallback: Option<Rc<dyn Fn() -> VirtualNode>>,
}Expand description
Props for the euv_page_router component.
Defines the strongly-typed interface for a page router that renders different content based on the current route.
Fields§
§route_signal: Signal<String>The reactive signal holding the current route.
fallback: Option<Rc<dyn Fn() -> VirtualNode>>The default/fallback view when no route matches.
Trait Implementations§
Source§impl Clone for EuvPageRouterProps
impl Clone for EuvPageRouterProps
Source§fn clone(&self) -> EuvPageRouterProps
fn clone(&self) -> EuvPageRouterProps
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 EuvPageRouterProps
impl Debug for EuvPageRouterProps
Source§impl Default for EuvPageRouterProps
impl Default for EuvPageRouterProps
Source§fn default() -> EuvPageRouterProps
fn default() -> EuvPageRouterProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvPageRouterProps
impl !Send for EuvPageRouterProps
impl !Sync for EuvPageRouterProps
impl !UnwindSafe for EuvPageRouterProps
impl Freeze for EuvPageRouterProps
impl Unpin for EuvPageRouterProps
impl UnsafeUnpin for EuvPageRouterProps
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