pub struct Form<T>where
T: From<FormExport> + 'static,{
pub form_data: Rc<FormData>,
pub on_submit: Rc<dyn Fn(FormExport)>,
pub params: FormParams<T>,
}Expand description
Renders a form for provided FormData that upon “Save” allows to grab updated fields from FormExport.
See FormData for description how to manage form structure.
Use f attribute group to pass anything to underlying
Fields§
§form_data: Rc<FormData>§on_submit: Rc<dyn Fn(FormExport)>§params: FormParams<T>Implementations§
Source§impl<T> Form<T>where
T: From<FormExport> + 'static,
impl<T> Form<T>where
T: From<FormExport> + 'static,
pub fn into_component(self) -> __FormComponent<T>
Auto Trait Implementations§
impl<T> Freeze for Form<T>
impl<T> !RefUnwindSafe for Form<T>
impl<T> !Send for Form<T>
impl<T> !Sync for Form<T>
impl<T> Unpin for Form<T>
impl<T> !UnwindSafe for Form<T>
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> 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