mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
5.0 KiB
5.0 KiB
+++
-----------------------------------------------------------------------
Do not edit this file. It is automatically generated by API Documenter.
-----------------------------------------------------------------------
title = "PanelOptionsEditorBuilder" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++
PanelOptionsEditorBuilder class
Fluent API for declarative creation of panel options
Signature
export declare class PanelOptionsEditorBuilder<TOptions> extends OptionsUIRegistryBuilder<TOptions, StandardEditorProps, PanelOptionsEditorItem<TOptions>>
Import
import { PanelOptionsEditorBuilder } from '@grafana/data';
Methods
addBooleanSwitch method
Signature
addBooleanSwitch<TSettings = any>(config: PanelOptionsEditorConfig<TOptions, TSettings, boolean>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings, boolean> |
Returns:
this
addColorPicker method
Signature
addColorPicker<TSettings = any>(config: PanelOptionsEditorConfig<TOptions, TSettings & ColorFieldConfigSettings, string>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings & ColorFieldConfigSettings, string> |
Returns:
this
addNumberInput method
Signature
addNumberInput<TSettings>(config: PanelOptionsEditorConfig<TOptions, TSettings & NumberFieldConfigSettings, number>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings & NumberFieldConfigSettings, number> |
Returns:
this
addRadio method
Signature
addRadio<TOption, TSettings extends SelectFieldConfigSettings<TOption>>(config: PanelOptionsEditorConfig<TOptions, TSettings, TOption>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings, TOption> |
Returns:
this
addSelect method
Signature
addSelect<TOption, TSettings extends SelectFieldConfigSettings<TOption>>(config: PanelOptionsEditorConfig<TOptions, TSettings, TOption>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings, TOption> |
Returns:
this
addStringArray method
Signature
addStringArray<TSettings>(config: PanelOptionsEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string[]>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string[]> |
Returns:
this
addTextInput method
Signature
addTextInput<TSettings>(config: PanelOptionsEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings & StringFieldConfigSettings, string> |
Returns:
this
addTimeZonePicker method
Signature
addTimeZonePicker<TSettings = any>(config: PanelOptionsEditorConfig<TOptions, TSettings, string>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings, string> |
Returns:
this
addUnitPicker method
Signature
addUnitPicker<TSettings = any>(config: PanelOptionsEditorConfig<TOptions, TSettings & UnitFieldConfigSettings, string>): this;
Parameters
Parameter | Type | Description |
---|---|---|
config | PanelOptionsEditorConfig<TOptions, TSettings & UnitFieldConfigSettings, string> |
Returns:
this