Struct yew_nested_router::components::LinkProps
source · pub struct LinkProps<T>where
T: Target,{
pub children: Children,
pub target: T,
pub any: bool,
pub predicate: Option<Callback<T, bool>>,
pub element: String,
pub class: Classes,
pub active: Classes,
pub inactive: Classes,
}Expand description
Properties for the Link component.
Fields§
§children: ChildrenIt’s children, rendered inside the element.
target: TThe link target.
any: bool§predicate: Option<Callback<T, bool>>§element: StringThe element to render, default to <a>.
class: ClassesCSS classes which are always present.
active: ClassesCSS classes which are added when the target is the active route.
inactive: ClassesCSS classes which are added when the target is not the active route.
Trait Implementations§
source§impl<T> PartialEq<LinkProps<T>> for LinkProps<T>where
T: Target + PartialEq,
impl<T> PartialEq<LinkProps<T>> for LinkProps<T>where T: Target + PartialEq,
source§impl<T> Properties for LinkProps<T>where
T: Target,
impl<T> Properties for LinkProps<T>where T: Target,
impl<T> StructuralPartialEq for LinkProps<T>where T: Target,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for LinkProps<T>
impl<T> !Send for LinkProps<T>
impl<T> !Sync for LinkProps<T>
impl<T> Unpin for LinkProps<T>where T: Unpin,
impl<T> !UnwindSafe for LinkProps<T>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.