API REFERENCE

validationRules

Defines required values, ranges, lists, patterns, custom validation, and other input checks.

What does this API do?

Defines required values, ranges, lists, patterns, custom validation, and other input checks.

Exact input and result types

typescript
validationRules: ValidationRule[]
ItemValue
JavaScript namevalidationRules
HTML attributevalidation-rules
Defaultundefined
Input typeValidationRule[]

Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples