CustomControlProps interface

Signature

  1. export interface CustomControlProps<T>

Import

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

Properties

PropertyTypeDescription
disabledboolean
invalidboolean
isOpenboolean
onBlur() => voidonBlur will be automatically passed to custom control closing the menu on element blur
onClick() => voidonClick will be automatically passed to custom control allowing menu toggle
refReact.Ref<any>
valueSelectableValue<T>Currently selected value

disabled property

Signature

  1. disabled: boolean;

invalid property

Signature

  1. invalid: boolean;

isOpen property

Signature

  1. isOpen: boolean;

onBlur property

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

Signature

  1. onBlur: () => void;

onClick property

onClick will be automatically passed to custom control allowing menu toggle

Signature

  1. onClick: () => void;

ref property

Signature

  1. ref: React.Ref<any>;

value property

Currently selected value

Signature

  1. value?: SelectableValue<T>;