isRuleOrGroupValid()
isRuleOrGroupValid(
rg
:RuleType
<string
,string
,any
,string
> |RuleGroupTypeAny
,validationResult
?:boolean
|ValidationResult
,validator
?:RuleValidator
):boolean
Determines if a rule or group is valid based on a validation result (if defined)
or a validator function. Returns true
if neither are defined.
Parameters
Parameter | Type |
---|---|
rg | RuleType <string , string , any , string > | RuleGroupTypeAny |
validationResult ? | boolean | ValidationResult |
validator ? | RuleValidator |
Returns
boolean
Defined in
packages/react-querybuilder/src/utils/isRuleOrGroupValid.ts:20
caution
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.