Struct ybc::NavbarItemProps
source · pub struct NavbarItemProps {
pub children: Children,
pub classes: Classes,
pub tag: NavbarItemTag,
pub has_dropdown: bool,
pub expanded: bool,
pub tab: bool,
pub active: bool,
pub href: Option<String>,
pub rel: Option<String>,
pub target: Option<String>,
}
Fields§
§children: Children
§classes: Classes
§tag: NavbarItemTag
The HTML tag to use for this component.
has_dropdown: bool
Add the has-dropdown
class to this element, indicating that it is the parent
of a dropdown menu.
expanded: bool
Turn this into a full-width element.
tab: bool
Add a bottom border on hover, and show the bottom border using is_active=true
.
active: bool
Show the bottom border when is_tab=true
.
href: Option<String>
An optional href
for when this element is using the a
tag.
rel: Option<String>
An optional rel
for when this element is using the a
tag.
target: Option<String>
An optional target
for when this element is using the a
tag.
Trait Implementations§
source§fn clone(&self) -> NavbarItemProps
fn clone(&self) -> NavbarItemProps
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§fn eq(&self, other: &NavbarItemProps) -> bool
fn eq(&self, other: &NavbarItemProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.