IDataFormValidationRule
@spartanfx/react / index / IDataFormValidationRule
Interface: IDataFormValidationRule<TValue>
Type Parameters
TValue
TValue extends DataFormValues = DataFormValues
Properties
| Property | Type |
|---|---|
message? | string |
type | | "max" | "min" | "pattern" | "maxLength" | "minLength" | "required" | "url" | "email" | "custom" |
validate? | (value, values, context) => | DataFormFieldValidationOutcome | Promise<DataFormFieldValidationOutcome> |
value? | string | number | RegExp |