Menu

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.

Enterprise Open source

CascaderOption interface

Signature

typescript
export interface CascaderOption 

Import

typescript
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

typescript
children?: CascaderOption[];

disabled property

Signature

typescript
disabled?: boolean;

items property

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

Signature

typescript
items?: CascaderOption[];

label property

The label to display in the UI

Signature

typescript
label: string;

title property

Avoid using

Signature

typescript
title?: string;

value property

The value used under the hood

Signature

typescript
value: any;