mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 23:32:30 +08:00

* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
71 lines
1.3 KiB
Markdown
71 lines
1.3 KiB
Markdown
+++
|
|
# -----------------------------------------------------------------------
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
# -----------------------------------------------------------------------
|
|
title = "ContextMenuProps"
|
|
keywords = ["grafana","documentation","sdk","@grafana/ui"]
|
|
type = "docs"
|
|
+++
|
|
|
|
## ContextMenuProps interface
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
export interface ContextMenuProps
|
|
```
|
|
<b>Import</b>
|
|
|
|
```typescript
|
|
import { ContextMenuProps } from '@grafana/ui';
|
|
```
|
|
<b>Properties</b>
|
|
|
|
| Property | Type | Description |
|
|
| --- | --- | --- |
|
|
| [items](#items-property) | <code>ContextMenuGroup[]</code> | |
|
|
| [onClose](#onclose-property) | <code>() => void</code> | |
|
|
| [renderHeader](#renderheader-property) | <code>() => React.ReactNode</code> | |
|
|
| [x](#x-property) | <code>number</code> | |
|
|
| [y](#y-property) | <code>number</code> | |
|
|
|
|
### items property
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
items?: ContextMenuGroup[];
|
|
```
|
|
|
|
### onClose property
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
onClose: () => void;
|
|
```
|
|
|
|
### renderHeader property
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
renderHeader?: () => React.ReactNode;
|
|
```
|
|
|
|
### x property
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
x: number;
|
|
```
|
|
|
|
### y property
|
|
|
|
<b>Signature</b>
|
|
|
|
```typescript
|
|
y: number;
|
|
```
|