feat: implement validation for select component
This commit is contained in:
1 parent
10d001fd6b
commit
b0b6f97b11
5 files changed
+114
-35
No files matched your search
@@ -56,6 +56,11 @@ pub struct FormValidationRegistry {
|
||||
pub validators: RwSignal<ValidatorList>
|
||||
}
|
||||
|
||||
/// Gets the [`FormValidationRegistry`] context if it exists.
|
||||
pub fn use_validation_context() -> Option<FormValidationRegistry> {
|
||||
use_context::<FormValidationRegistry>()
|
||||
}
|
||||
|
||||
/// # Validated Form Component
|
||||
///
|
||||
/// A simple HTML `<form>` wrapper that executes validation logic using a [`FormValidationRegistry`].
|
||||
|
||||
Reference in new issue
Block a user