pub struct LinkProperties<T>where
T: Target,{
pub children: Html,
pub id: Option<AttrValue>,
pub to: T,
pub state: State,
pub any: bool,
pub predicate: Option<Callback<T, bool>>,
pub element: String,
pub suppress_href: bool,
pub suppress_hash: bool,
pub class: Classes,
pub active: Classes,
pub inactive: Classes,
}
Expand description
Properties for the Link
component.
Fields§
§children: Html
Its content, rendered inside the element.
id: Option<AttrValue>
§to: T
The link target route.
state: State
A state to push, if present
any: bool
§predicate: Option<Callback<T, bool>>
§element: String
The element to render, default to <a>
.
suppress_href: bool
Suppress rendering the “href” attribute in any case.
suppress_hash: bool
Suppress rendering the state to the “hash” of the “href”.
class: Classes
CSS classes which are always present.
active: Classes
CSS classes which are added when the target is the active route.
inactive: Classes
CSS classes which are added when the target is not the active route.
Trait Implementations§
Source§impl<T> Clone for LinkProperties<T>
impl<T> Clone for LinkProperties<T>
Source§fn clone(&self) -> LinkProperties<T>
fn clone(&self) -> LinkProperties<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for LinkProperties<T>
impl<T> Debug for LinkProperties<T>
Source§impl<T> PartialEq for LinkProperties<T>
impl<T> PartialEq for LinkProperties<T>
Source§impl<T> Properties for LinkProperties<T>where
T: Target,
impl<T> Properties for LinkProperties<T>where
T: Target,
impl<T> StructuralPartialEq for LinkProperties<T>where
T: Target,
Auto Trait Implementations§
impl<T> Freeze for LinkProperties<T>where
T: Freeze,
impl<T> !RefUnwindSafe for LinkProperties<T>
impl<T> !Send for LinkProperties<T>
impl<T> !Sync for LinkProperties<T>
impl<T> Unpin for LinkProperties<T>where
T: Unpin,
impl<T> !UnwindSafe for LinkProperties<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.