pub struct FieldErrorProps {
pub id: Rc<str>,
pub meta: Option<FieldMeta>,
pub invalid: Option<bool>,
pub disabled: Option<bool>,
pub required: Option<bool>,
pub attributes: Vec<Attribute>,
}Expand description
Props for the headless FieldError 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 used by data-state attributes.
required: Option<bool>Explicit required state used by data-state attributes.
attributes: Vec<Attribute>Attributes forwarded to the rendered error 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.
Implementations§
Source§impl FieldErrorProps
impl FieldErrorProps
Sourcepub fn builder() -> FieldErrorPropsBuilder<((), (), (), (), (), ())>
pub fn builder() -> FieldErrorPropsBuilder<((), (), (), (), (), ())>
Create a builder for building FieldErrorProps.
On the builder, call .id(...), .meta(...)(optional), .invalid(...)(optional), .disabled(...)(optional), .required(...)(optional), .attributes(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FieldErrorProps.
Trait Implementations§
Source§impl Clone for FieldErrorProps
impl Clone for FieldErrorProps
Source§fn clone(&self) -> FieldErrorProps
fn clone(&self) -> FieldErrorProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more