ContextMenus beta
Class of @v12-engine/editor
ts
export declare class ContextMenusThe right-click menu's providers, by kind (editor.contextMenus): for(kinds, provider, { order }) gives back what takes it away. Providers are asked in order (0 for the editor's own, as they came when the same), and each one's lines come under a line of their own
Members
for
ts
for(kinds: string | readonly string[], provider: EditorMenuProvider, options?: {
order?: number;
}): () => void;Lines for a kind, a few kinds, or all ('*'), from now on
itemsFor
ts
itemsFor(context: EditorMenuContext): EditorMenuItem[];The lines of the menu for what was clicked, each provider's after a line