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
NavModelItem interface
Signature
typescript
export interface NavModelItem Import
typescript
import { NavModelItem } from '@grafana/data';Properties
| Property | Type | Description |
|---|---|---|
| active | boolean | |
| breadcrumbs | NavModelBreadcrumb[] | |
| children | NavModelItem[] | |
| divider | boolean | |
| hideFromMenu | boolean | |
| hideFromTabs | boolean | |
| highlightId | string | |
| highlightText | string | |
| icon | string | |
| id | string | |
| img | string | |
| menuItemType | NavMenuItemType | |
| onClick | () => void | |
| parentItem | NavModelItem | |
| section | NavSection | |
| showOrgSwitcher | boolean | |
| subTitle | string | |
| tabSuffix | ComponentType<{className?: string;}> | |
| target | string | |
| text | string | |
| url | string |
active property
Signature
typescript
active?: boolean;breadcrumbs property
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;menuItemType property
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;Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Scroll for more