Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana/v7.2/packages_api/data/fieldconfigeditorbuilder.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana/v7.2/packages_api/data/fieldconfigeditorbuilder/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
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.
FieldConfigEditorBuilder class
Fluent API for declarative creation of field config option editors
Signature
export declare class FieldConfigEditorBuilder<TOptions> extends OptionsUIRegistryBuilder<TOptions, FieldConfigEditorProps<any, any>, FieldConfigPropertyItem<TOptions>> Import
import { FieldConfigEditorBuilder } from '@grafana/data';Methods
addBooleanSwitch method
Signature
addBooleanSwitch<TSettings = any>(config: FieldConfigEditorConfig<TOptions, TSettings, boolean>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings, boolean> |
Returns:
this
addColorPicker method
Signature
addColorPicker<TSettings = any>(config: FieldConfigEditorConfig<TOptions, TSettings & ColorFieldConfigSettings, FieldColor>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings & ColorFieldConfigSettings, FieldColor> |
Returns:
this
addNumberInput method
Signature
addNumberInput<TSettings>(config: FieldConfigEditorConfig<TOptions, TSettings & NumberFieldConfigSettings, number>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings & NumberFieldConfigSettings, number> |
Returns:
this
addRadio method
Signature
addRadio<TOption, TSettings = any>(config: FieldConfigEditorConfig<TOptions, TSettings, TOption>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings, TOption> |
Returns:
this
addSelect method
Signature
addSelect<TOption, TSettings extends SelectFieldConfigSettings<TOption>>(config: FieldConfigEditorConfig<TOptions, TSettings, TOption>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings, TOption> |
Returns:
this
addTextInput method
Signature
addTextInput<TSettings>(config: FieldConfigEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string> |
Returns:
this
addUnitPicker method
Signature
addUnitPicker<TSettings = any>(config: FieldConfigEditorConfig<TOptions, TSettings & UnitFieldConfigSettings, string>): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| config | FieldConfigEditorConfig<TOptions, TSettings & UnitFieldConfigSettings, string> |
Returns:
this