Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
ValidationRule interface
Signature
export interface ValidationRule
Import
import { ValidationRule } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
errorMessage | string | |
rule | (valueToValidate: string) => boolean |
errorMessage property
Signature
errorMessage: string;
rule property
Signature
rule: (valueToValidate: string) => boolean;