Archived
generated from mitchell/rust_template
conditional validation
This commit is contained in:
@@ -33,7 +33,9 @@ impl<FD: FormToolData> FormValidator<FD> {
|
||||
/// With this, you can render the form, get the form data, or get
|
||||
/// a validator for the data.
|
||||
pub struct Form<FD: FormToolData> {
|
||||
/// The form data signal.
|
||||
pub fd: RwSignal<FD>,
|
||||
/// The list of validations
|
||||
pub(crate) validations: Vec<Rc<dyn ValidationFn<FD>>>,
|
||||
pub(crate) view: View,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user