pub struct NovaFormProps<F, ServFn, L, K>where
F: Default + Clone + Serialize + Debug + 'static,
ServFn: DeserializeOwned + Serialize + ServerFn<InputEncoding = PostUrl, Error = NoCustomError, Output = ()> + 'static,
<<ServFn::Client as Client<ServFn::Error>>::Request as ClientReq<ServFn::Error>>::FormData: From<FormData>,
L: Locale + 'static,
<L as FromStr>::Err: Debug,
K: LocaleKeys<Locale = L> + 'static,{
pub form_data: F,
pub on_submit: Action<ServFn, Result<(), ServerFnError>>,
pub bind: QueryString,
pub bind_meta_data: QueryString,
pub _arg: PhantomData<ServFn>,
pub i18n: I18nContext<L, K>,
pub children: Children,
pub render: bool,
}Expand description
Props for the NovaForm component.
§Required Props
- on_submit: [
Action<ServFn, Result<(), ServerFnError>>] - bind:
impl Into<QueryString> - bind_meta_data:
impl Into<QueryString> - i18n:
I18nContext<L, K> - children:
Children
§Optional Props
- form_data: [
F] - _arg:
PhantomData<ServFn> - render:
bool
Fields§
§form_data: F§on_submit: Action<ServFn, Result<(), ServerFnError>>§bind: QueryString§bind_meta_data: QueryString§_arg: PhantomData<ServFn>§i18n: I18nContext<L, K>§children: Children§render: boolImplementations§
Source§impl<F, ServFn, L, K> NovaFormProps<F, ServFn, L, K>where
F: Default + Clone + Serialize + Debug + 'static,
ServFn: DeserializeOwned + Serialize + ServerFn<InputEncoding = PostUrl, Error = NoCustomError, Output = ()> + 'static,
<<ServFn::Client as Client<ServFn::Error>>::Request as ClientReq<ServFn::Error>>::FormData: From<FormData>,
L: Locale + 'static,
<L as FromStr>::Err: Debug,
K: LocaleKeys<Locale = L> + 'static,
impl<F, ServFn, L, K> NovaFormProps<F, ServFn, L, K>where
F: Default + Clone + Serialize + Debug + 'static,
ServFn: DeserializeOwned + Serialize + ServerFn<InputEncoding = PostUrl, Error = NoCustomError, Output = ()> + 'static,
<<ServFn::Client as Client<ServFn::Error>>::Request as ClientReq<ServFn::Error>>::FormData: From<FormData>,
L: Locale + 'static,
<L as FromStr>::Err: Debug,
K: LocaleKeys<Locale = L> + 'static,
Sourcepub fn builder() -> NovaFormPropsBuilder<F, ServFn, L, K, ((), (), (), (), (), (), (), ())>
pub fn builder() -> NovaFormPropsBuilder<F, ServFn, L, K, ((), (), (), (), (), (), (), ())>
Create a builder for building NovaFormProps.
On the builder, call .form_data(...)(optional), .on_submit(...), .bind(...), .bind_meta_data(...), ._arg(...)(optional), .i18n(...), .children(...), .render(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of NovaFormProps.
Trait Implementations§
Source§impl<F, ServFn, L, K> IntoView for NovaFormProps<F, ServFn, L, K>where
F: Default + Clone + Serialize + Debug + 'static,
ServFn: DeserializeOwned + Serialize + ServerFn<InputEncoding = PostUrl, Error = NoCustomError, Output = ()> + 'static,
<<ServFn::Client as Client<ServFn::Error>>::Request as ClientReq<ServFn::Error>>::FormData: From<FormData>,
L: Locale + 'static,
<L as FromStr>::Err: Debug,
K: LocaleKeys<Locale = L> + 'static,
impl<F, ServFn, L, K> IntoView for NovaFormProps<F, ServFn, L, K>where
F: Default + Clone + Serialize + Debug + 'static,
ServFn: DeserializeOwned + Serialize + ServerFn<InputEncoding = PostUrl, Error = NoCustomError, Output = ()> + 'static,
<<ServFn::Client as Client<ServFn::Error>>::Request as ClientReq<ServFn::Error>>::FormData: From<FormData>,
L: Locale + 'static,
<L as FromStr>::Err: Debug,
K: LocaleKeys<Locale = L> + 'static,
Auto Trait Implementations§
impl<F, ServFn, L, K> Freeze for NovaFormProps<F, ServFn, L, K>where
<<<ServFn as ServerFn>::Client as Client<NoCustomError>>::Request as ClientReq<NoCustomError>>::FormData: Sized,
F: Freeze,
impl<F, ServFn, L, K> !RefUnwindSafe for NovaFormProps<F, ServFn, L, K>
impl<F, ServFn, L, K> !Send for NovaFormProps<F, ServFn, L, K>
impl<F, ServFn, L, K> !Sync for NovaFormProps<F, ServFn, L, K>
impl<F, ServFn, L, K> Unpin for NovaFormProps<F, ServFn, L, K>
impl<F, ServFn, L, K> !UnwindSafe for NovaFormProps<F, ServFn, L, K>
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> 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>
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