import { CContextMenu } from '@coreui/vue'
| Property | Default | Type |
|---|
Configures the auto close behavior: - true — closes on a click inside or outside the menu, - 'inside' — closes on a click inside the menu only, - 'outside' — closes on a click outside the menu only, - false — closes only on the Escape key. |
The element the panel is rendered into instead of document.body. You can pass an HTML element or function that returns a single element. Implies portal. Inside a modal dialog it goes into the dialog instead, because the rest of the page is inert. |
Renders the panel in the dark theme. |
Keeps the menu closed and lets the browser's own menu through. |
The distance of the panel from the pointer, as [skidding, distance]. |
Where the panel opens relative to the pointer. It flips when that side of the viewport is short, and a logical start or end side resolves to the side the writing direction puts it on. |
Renders the panel through a Teleport. |
| Event name |
|---|
Callback fired when the menu is hidden. |
Callback fired when the menu is shown. |
The menu itself is a <CMenuContent> with the same items, headers, dividers and submenus as a Menu.