Scheduler - Context Menu
Open context menus for cells, events, and resources.
#Usage
import { Scheduler } from '@primeui/vue-scheduler';<Scheduler.Root @context-menu-show="onContextMenuShow">
<Scheduler.ContextMenu />
</Scheduler.Root>Context menus are wired through the root context-menu-show event and rendered with Scheduler.ContextMenu. Use the payload to prepare actions for an event, date cell, or resource target.
#Timed Targets
Context menus can target timed week cells, all-day rows, and events. The event action path opens an editor dialog, so users can make the same change from a right-click menu that they would from an event editor.
#Customization
Replace the menu body when actions need more context than a plain command list. This version shows the event, resource, owner, and action hints, matches its accent to the clicked resource group, and opens the same editor dialog from its Edit action while Scheduler.ContextMenu still handles target discovery, overlay placement, and keyboard dismissal.
#API
Key APIs are contextMenu, Scheduler.ContextMenu, @context-menu-show, event click payloads, and resource context fields.