CascaderOption interface

Signature

  1. export interface CascaderOption

Import

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

Properties

PropertyTypeDescription
childrenCascaderOption[]Children will be shown in a submenu. Use ‘items’ instead, as ‘children’ exist to ensure backwards compatibility.
disabledboolean
itemsCascaderOption[]Items will be just flattened into the main list of items recursively.
labelstringThe label to display in the UI
titlestringAvoid using
valueanyThe value used under the hood

children property

Children will be shown in a submenu. Use ‘items’ instead, as ‘children’ exist to ensure backwards compatibility.

Signature

  1. children?: CascaderOption[];

disabled property

Signature

  1. disabled?: boolean;

items property

Items will be just flattened into the main list of items recursively.

Signature

  1. items?: CascaderOption[];

label property

The label to display in the UI

Signature

  1. label: string;

title property

Avoid using

Signature

  1. title?: string;

value property

The value used under the hood

Signature

  1. value: any;