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 extends NavLinkDTO 

Import

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

Properties

PropertyTypeDescription
activeboolean
breadcrumbsNavModelBreadcrumb[]
childrenNavModelItem[]
hideFromNavbarboolean
highlightIdstring
highlightTextstring
menuItemTypeNavMenuItemType
onClick() => void
parentItemNavModelItem
showIconInNavbarboolean
showOrgSwitcherboolean
tabSuffixComponentType<{
className?: string;
}>

active property

Signature

typescript
active?: boolean;

Signature

typescript
breadcrumbs?: NavModelBreadcrumb[];

children property

Signature

typescript
children?: NavModelItem[];

hideFromNavbar property

Signature

typescript
hideFromNavbar?: boolean;

highlightId property

Signature

typescript
highlightId?: string;

highlightText property

Signature

typescript
highlightText?: string;

Signature

typescript
menuItemType?: NavMenuItemType;

onClick property

Signature

typescript
onClick?: () => void;

parentItem property

Signature

typescript
parentItem?: NavModelItem;

showIconInNavbar property

Signature

typescript
showIconInNavbar?: boolean;

showOrgSwitcher property

Signature

typescript
showOrgSwitcher?: boolean;

tabSuffix property

Signature

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