Skip to main content

default_context_items

Function default_context_items 

Source
pub fn default_context_items(caps: ContextMenuCaps) -> Vec<ContextMenuItem>
Expand description

Builds the built-in edit rows for the given capabilities.

Order: Undo, Redo, Cut, Copy, Paste, Delete, Select All. The last default carries divider_after = true so renderers draw a separator before hook-contributed rows (removed by collect_context_items when no hook rows follow).