Context Menu

<vscode-context-menu>

Properties

data
TypeMenuItemData[]
preventClose reflected

By default, the menu closes when an item is clicked. This attribute prevents the menu from closing.

Attributeprevent-close
Typeboolean
Defaultfalse
show reflected
Attributeshow
Typeboolean
version readonly

VSC Element version

Events

vsc-menu-select

Emitted when a menu item is clicked

TypeVscMenuSelectEvent
vsc-select deprecated
  • Renamed to vsc-context-menu-select
TypeCustomEvent

Custom CSS Properties

--vscode-font-family

--vscode-font-size

--vscode-font-weight

--vscode-menu-background

--vscode-menu-border

--vscode-menu-foreground

--vscode-widget-shadow