Context Menu
Overview
Right-click on the grid to open a context menu. The menu supports built-in actions (copy, paste, pin) and custom items.
Configuration
cell_items— shown when right-clicking a data cellcol_header_items— shown when right-clicking a column header
Menu items
Built-in actions
Separator
ContextMenuItem::Separator renders a visual divider between groups of items.
Customization
Built-in actions have builder methods for customizing:
label— display texticon— icon URLshortcut— keyboard shortcut hint text
Example
Rendering
The context menu is rendered as a DOM overlay (not on the canvas), positioned at the right-click coordinates. It closes on click outside or Escape.