pub struct ItemProps {
pub children: Element,
pub style: &'static str,
pub class: &'static str,
pub align: Align,
pub title: &'static str,
pub icon: &'static str,
}dio only.Fields§
§children: ElementThe child elements of the item.
These elements will be rendered inside the item container.
style: &'static strThe inline style for the item container.
Defaults to an empty string.
class: &'static strThe CSS class for the item container.
Defaults to an empty string.
align: AlignThe alignment of the item content.
Specifies how the content of the item should be aligned (e.g., Align::Left, Align::Center, etc.).
Defaults to Align::Left.
title: &'static strThe title text for the item.
This text typically appears as a header or label for the item. Defaults to an empty string.
icon: &'static strThe icon associated with the item.
This can be a URL to an image or an icon class name. Defaults to an empty string.
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(...)(optional), .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§
Source§impl Properties for ItemPropswhere
Self: Clone,
impl Properties for ItemPropswhere
Self: Clone,
Source§type Builder = ItemPropsBuilder<((), (), (), (), (), ())>
type Builder = ItemPropsBuilder<((), (), (), (), (), ())>
Source§fn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Source§fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
impl StructuralPartialEq for ItemProps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
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>
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>
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>
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
self to a value of a Properties struct.