conditional validation

This commit is contained in:
2024-06-18 14:18:36 -05:00
parent bbde4d6331
commit 89375a5b0c
4 changed files with 44 additions and 11 deletions
+2
View File
@@ -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,
}