pub struct FormProps {
pub action: Action,
pub fields: Vec<ComponentNode>,
pub method: Option<HttpMethod>,
pub guard: Option<String>,
pub max_width: Option<FormMaxWidth>,
}Expand description
Props for Form component.
Fields§
§action: Action§fields: Vec<ComponentNode>§method: Option<HttpMethod>§guard: Option<String>Form guard type. When set, the runtime JS disables the submit button
until the guard condition is met. Value: "number-gt-0" — at least
one number input must have value > 0.
max_width: Option<FormMaxWidth>Optional max-width constraint for the form container.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FormProps
impl<'de> Deserialize<'de> for FormProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FormProps
Auto Trait Implementations§
impl Freeze for FormProps
impl RefUnwindSafe for FormProps
impl Send for FormProps
impl Sync for FormProps
impl Unpin for FormProps
impl UnsafeUnpin for FormProps
impl UnwindSafe for FormProps
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