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

Signature

typescript
export interface NavModelItem 

Import

typescript
import { NavModelItem } from '@grafana/data';

Properties

PropertyTypeDescription
activeboolean
breadcrumbsNavModelBreadcrumb[]
childrenNavModelItem[]
dividerboolean
hideFromMenuboolean
hideFromTabsboolean
highlightIdstring
highlightTextstring
iconstring
idstring
imgstring
menuItemTypeNavMenuItemType
onClick() => void
parentItemNavModelItem
sectionNavSection
showOrgSwitcherboolean
subTitlestring
tabSuffixComponentType<{
className?: string;
}>
targetstring
textstring
urlstring

active property

Signature

typescript
active?: boolean;

Signature

typescript
breadcrumbs?: NavModelBreadcrumb[];

children property

Signature

typescript
children?: NavModelItem[];

divider property

Signature

typescript
divider?: boolean;

hideFromMenu property

Signature

typescript
hideFromMenu?: boolean;

hideFromTabs property

Signature

typescript
hideFromTabs?: boolean;

highlightId property

Signature

typescript
highlightId?: string;

highlightText property

Signature

typescript
highlightText?: string;

icon property

Signature

typescript
icon?: string;

id property

Signature

typescript
id?: string;

img property

Signature

typescript
img?: string;

Signature

typescript
menuItemType?: NavMenuItemType;

onClick property

Signature

typescript
onClick?: () => void;

parentItem property

Signature

typescript
parentItem?: NavModelItem;

section property

Signature

typescript
section?: NavSection;

showOrgSwitcher property

Signature

typescript
showOrgSwitcher?: boolean;

subTitle property

Signature

typescript
subTitle?: string;

tabSuffix property

Signature

typescript
tabSuffix?: ComponentType<{
        className?: string;
    }>;

target property

Signature

typescript
target?: string;

text property

Signature

typescript
text: string;

url property

Signature

typescript
url?: string;