mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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;
|
||
|
```
|