pub struct CheckboxIndicatorProps {
pub force_mount: MaybeProp<bool>,
pub as_child: MaybeProp<bool>,
pub attrs: Vec<(&'static str, Attribute)>,
pub children: Option<ChildrenFn>,
}
Expand description
Props for the CheckboxIndicator
component.
§Required Props
- attrs: [
Vec<(&'static str, Attribute)>
]
§Optional Props
- force_mount:
impl Into<MaybeProp<bool>>
- Used to force mounting when more control is needed. Useful when controlling animation with animation libraries.
- as_child:
impl Into<MaybeProp<bool>>
- children:
ChildrenFn
Fields§
§force_mount: MaybeProp<bool>
Used to force mounting when more control is needed. Useful when controlling animation with animation libraries.
as_child: MaybeProp<bool>
§attrs: Vec<(&'static str, Attribute)>
§children: Option<ChildrenFn>
Implementations§
Source§impl CheckboxIndicatorProps
impl CheckboxIndicatorProps
Sourcepub fn builder() -> CheckboxIndicatorPropsBuilder<((), (), (), ())>
pub fn builder() -> CheckboxIndicatorPropsBuilder<((), (), (), ())>
Create a builder for building CheckboxIndicatorProps
.
On the builder, call .force_mount(...)
(optional), .as_child(...)
(optional), .attrs(...)
(optional), .children(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CheckboxIndicatorProps
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CheckboxIndicatorProps
impl !RefUnwindSafe for CheckboxIndicatorProps
impl !Send for CheckboxIndicatorProps
impl !Sync for CheckboxIndicatorProps
impl Unpin for CheckboxIndicatorProps
impl !UnwindSafe for CheckboxIndicatorProps
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> 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 more