---
title: Interface: ContextMenuOptions
source: https://vjmap.com/doc/Interface_ContextMenuOptions.html
---

# Interface: ContextMenuOptions

[default](#modulesdefaultmd).ContextMenuOptions

上下文菜单选项.

### Table of contents

#### Properties

- [event](#event)
- [innerHeight](#innerheight)
- [innerWidth](#innerwidth)
- [items](#items)
- [theme](#theme)
- [width](#width)

### Properties

#### event

• **event**: Event

事件对象.

___

#### innerHeight

• `Optional` **innerHeight**: *number*

菜单外面容器的内部宽，用于菜单超时范围时自动调位置，默认是window大小高 可通过 map.getContainer().getBoundingClientRect().height来设置

___

#### innerWidth

• `Optional` **innerWidth**: *number*

菜单外面容器的内部宽，用于菜单超时范围时自动调位置，默认是window大小宽 可通过 map.getContainer().getBoundingClientRect().width来设置

___

#### items

• **items**: [*ContextMenuSubItemOptions*](#interfacesdefaultcontextmenusubitemoptionsmd)[]

子项

___

#### theme

• `Optional` **theme**: *string*

菜单主题色.(dark和light,默认dark)

___

#### width

• `Optional` **width**: *string*

菜单宽度（包括子菜单),像素，默认150px.


<a name="interfacesdefaultcontextmenusubitemoptionsmd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / [default](#modulesdefaultmd) / ContextMenuSubItemOptions
