Menu

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.

Enterprise Open source

SelectFieldConfigSettings interface

Signature

typescript
export interface SelectFieldConfigSettings<T> 

Import

typescript
import { SelectFieldConfigSettings } from '@grafana/data';

Properties

PropertyTypeDescription
allowCustomValueboolean
getOptions(context: FieldOverrideContext) => Promise<Array<SelectableValue<T>>>Optionally use the context to define the options
optionsArray<SelectableValue<T>>The default options

allowCustomValue property

Signature

typescript
allowCustomValue?: boolean;

getOptions property

Optionally use the context to define the options

Signature

typescript
getOptions?: (context: FieldOverrideContext) => Promise<Array<SelectableValue<T>>>;

options property

The default options

Signature

typescript
options: Array<SelectableValue<T>>;