pub struct GroupProps {
pub label: Option<TextProp>,
pub bind: QueryStringPart,
pub values: MaybeProp<Data>,
pub disabled: MaybeProp<bool>,
pub children: Children,
}Expand description
Props for the Group component.
A component that binds all of its contents to a part of the form data.
§Required Props
- bind:
impl Into<QueryStringPart>- The query string that binds the group to the form data.
- children:
Children- The children of the group.
§Optional Props
- label:
impl Into<TextProp>- An optional label for the group.
- values:
impl Into<MaybeProp<Data>>- The value of the group.
- disabled:
impl Into<MaybeProp<bool>>- The value of the group.
Fields§
§label: Option<TextProp>An optional label for the group.
bind: QueryStringPartThe query string that binds the group to the form data.
values: MaybeProp<Data>The value of the group.
disabled: MaybeProp<bool>The value of the group.
children: ChildrenThe children of the group.
Implementations§
Source§impl GroupProps
impl GroupProps
Sourcepub fn builder() -> GroupPropsBuilder<((), (), (), (), ())>
pub fn builder() -> GroupPropsBuilder<((), (), (), (), ())>
Create a builder for building GroupProps.
On the builder, call .label(...)(optional), .bind(...), .values(...)(optional), .disabled(...)(optional), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of GroupProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroupProps
impl !RefUnwindSafe for GroupProps
impl !Send for GroupProps
impl !Sync for GroupProps
impl Unpin for GroupProps
impl !UnwindSafe for GroupProps
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