API Reference@grafana/uiCustomControlProps

CustomControlProps interface

Signature

export interface CustomControlProps<T> 

Import

import { CustomControlProps } from '@grafana/ui';

Properties

Property Type Description
disabled boolean
invalid boolean
isOpen boolean
onBlur () => void onBlur will be automatically passed to custom control closing the menu on element blur
onClick () => void onClick will be automatically passed to custom control allowing menu toggle
ref React.Ref<any>
value SelectableValue<T> Currently selected value

disabled property

Signature

disabled: boolean;

invalid property

Signature

invalid: boolean;

isOpen property

Signature

isOpen: boolean;

onBlur property

onBlur will be automatically passed to custom control closing the menu on element blur

Signature

onBlur: () => void;

onClick property

onClick will be automatically passed to custom control allowing menu toggle

Signature

onClick: () => void;

ref property

Signature

ref: React.Ref<any>;

value property

Currently selected value

Signature

value?: SelectableValue<T>;