pub struct ItemProps {
pub children: Children,
pub style: &'static str,
pub class: &'static str,
pub align: Align,
pub title: &'static str,
pub icon: &'static str,
}Available on crate feature
lep only.Expand description
Props for the Item component.
§Required Props
- children:
Children- Child content of the Item
§Optional Props
- style: [
&'static str]- Additional styles for the Item
- class: [
&'static str]- CSS class for the Item
- align:
Align- Alignment for the content
- title: [
&'static str]- Title of the Item
- icon: [
&'static str]- Optional icon for the Item
Fields§
§children: ChildrenChild content of the Item
style: &'static strAdditional styles for the Item
class: &'static strCSS class for the Item
align: AlignAlignment for the content
title: &'static strTitle of the Item
icon: &'static strOptional icon for the Item
Implementations§
Source§impl ItemProps
impl ItemProps
Sourcepub fn builder() -> ItemPropsBuilder<((), (), (), (), (), ())>
pub fn builder() -> ItemPropsBuilder<((), (), (), (), (), ())>
Create a builder for building ItemProps.
On the builder, call .children(...), .style(...)(optional), .class(...)(optional), .align(...)(optional), .title(...)(optional), .icon(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ItemProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemProps
impl !RefUnwindSafe for ItemProps
impl Send for ItemProps
impl !Sync for ItemProps
impl Unpin for ItemProps
impl !UnwindSafe for ItemProps
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> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.