pub struct FormProps {Show 18 fields
pub children: Children,
pub class: &'static str,
pub style: &'static str,
pub id: &'static str,
pub action: &'static str,
pub method: Method,
pub enc_type: EncType,
pub target: Target,
pub novalidate: bool,
pub autocomplete: &'static str,
pub name: &'static str,
pub validation_behavior: ValidationBehavior,
pub on_submit: Callback<SubmitEvent>,
pub on_reset: Callback<Event>,
pub on_invalid: Callback<Event>,
pub aria_label: &'static str,
pub aria_labelledby: &'static str,
pub data_testid: &'static str,
}yew only.Expand description
Props for the Form Yew component.
Fieldsยง
ยงchildren: ChildrenForm content: fields, buttons, and other interactive controls.
class: &'static strAdditional CSS class names on the <form> element.
style: &'static strInline CSS on the <form> element.
id: &'static strid attribute on the <form> element.
action: &'static strURL that processes the form submission.
method: MethodHTTP method for form submission.
enc_type: EncTypeMIME encoding type for submitted data.
target: TargetWhere to display the form response.
novalidate: boolWhen true, disables native browser validation on submit.
Has no effect when validation_behavior is Aria.
autocomplete: &'static strBrowser autocomplete hint for the form.
name: &'static strName of the form; must be unique in the forms collection.
validation_behavior: ValidationBehaviorControls whether validation is native (blocks submit) or ARIA (realtime).
on_submit: Callback<SubmitEvent>Handler called when the form is submitted.
on_reset: Callback<Event>Handler called when the form is reset.
on_invalid: Callback<Event>Handler called when any field fails native validation.
aria_label: &'static strAccessible label for screen readers (creates a form landmark).
aria_labelledby: &'static strID of an element that labels this form.
data_testid: &'static strdata-testid for automated testing.
Trait Implementationsยง
Sourceยงimpl Properties for FormProps
impl Properties for FormProps
impl StructuralPartialEq for FormProps
Auto Trait Implementationsยง
impl !RefUnwindSafe for FormProps
impl !Send for FormProps
impl !Sync for FormProps
impl !UnwindSafe for FormProps
impl Freeze for FormProps
impl Unpin for FormProps
impl UnsafeUnpin for FormProps
Blanket Implementationsยง
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> HasAllProps<(), T> for T
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.