FieldNamePickerConfigSettings interface

Signature

  1. export interface FieldNamePickerConfigSettings

Import

  1. import { FieldNamePickerConfigSettings } from '@grafana/data';

Properties

PropertyTypeDescription
filter(field: Field) => booleanFunction is a predicate, to test each element of the array. Return a value that coerces to true to keep the field, or to false otherwise.
infoComponentType<FieldNamePickerInfoProps> | nullWhen a field is selected, this component can show aditional information, including validation etc
noFieldsMessagestringShow this text when no values are found
placeholderTextstringPlaceholder text to display when nothing is selected.
widthnumberSets the width to a pixel value.

filter property

Function is a predicate, to test each element of the array. Return a value that coerces to true to keep the field, or to false otherwise.

Signature

  1. filter?: (field: Field) => boolean;

info property

When a field is selected, this component can show aditional information, including validation etc

Signature

  1. info?: ComponentType<FieldNamePickerInfoProps> | null;

noFieldsMessage property

Show this text when no values are found

Signature

  1. noFieldsMessage?: string;

placeholderText property

Placeholder text to display when nothing is selected.

Signature

  1. placeholderText?: string;

width property

Sets the width to a pixel value.

Signature

  1. width?: number;