pub struct FieldDescriptionProps {
pub id: Rc<str>,
pub meta: Option<FieldMeta>,
pub invalid: Option<bool>,
pub disabled: Option<bool>,
pub required: Option<bool>,
pub attributes: Vec<Attribute>,
pub children: Element,
}Expand description
Props for the headless FieldDescription part.
Fields§
§id: Rc<str>Stable id registered with the resolved field metadata for this part’s lifetime.
meta: Option<FieldMeta>Explicit metadata, which wins over Field Context metadata.
invalid: Option<bool>Explicit invalid state, which wins over the metadata state.
disabled: Option<bool>Explicit disabled state, which wins over the metadata state.
required: Option<bool>Explicit required state, which wins over the metadata state.
attributes: Vec<Attribute>Attributes forwarded to the rendered description div.
Sorted by attribute name and deduplicated with the part’s own, which dioxus-core requires
of any spread list. A forwarded attribute wins its name.
children: ElementDescription content.
Implementations§
Source§impl FieldDescriptionProps
impl FieldDescriptionProps
Sourcepub fn builder() -> FieldDescriptionPropsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> FieldDescriptionPropsBuilder<((), (), (), (), (), (), ())>
Create a builder for building FieldDescriptionProps.
On the builder, call .id(...), .meta(...)(optional), .invalid(...)(optional), .disabled(...)(optional), .required(...)(optional), .attributes(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FieldDescriptionProps.
Trait Implementations§
Source§impl Clone for FieldDescriptionProps
impl Clone for FieldDescriptionProps
Source§fn clone(&self) -> FieldDescriptionProps
fn clone(&self) -> FieldDescriptionProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more