Skip to main content

getValidationClassNames()

getValidationClassNames(validationResult: boolean | ValidationResult): "" | "queryBuilder-valid" | "queryBuilder-invalid"

Gets the standard classname for valid or invalid components based on the given validation result.

Parameters

ParameterType
validationResultboolean | ValidationResult

Returns

"" | "queryBuilder-valid" | "queryBuilder-invalid"

Defined in

packages/react-querybuilder/src/utils/getValidationClassNames.ts:8


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.