This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uivalidate

validate variable

validate variable

Signature

validate: (value: string, validationRules: ValidationRule[]) => string[] | null

Import

import { validate } from '@grafana/ui';