Skip to content

docs: add dedicated Context menus page#1424

Merged
mathuo merged 1 commit into
v8-branchfrom
claude/context-menu-docs-4fs8jr
Jul 9, 2026
Merged

docs: add dedicated Context menus page#1424
mathuo merged 1 commit into
v8-branchfrom
claude/context-menu-docs-4fs8jr

Conversation

@mathuo

@mathuo mathuo commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Description

The docs had no dedicated page for the context menu feature, despite it shipping runnable example templates for all four frameworks and being registered on the examples page. It was only mentioned in passing in features.mdx, editions.mdx, and the tab-groups page.

This adds a dedicated Context menus page and corrects the feature-comparison table. The entire ContextMenuModule is defined only in dockview-enterprise (packages/dockview-enterprise/src/contextMenu.ts), so both getTabContextMenuItems and getTabGroupChipContextMenuItems are no-ops without the enterprise package. The comparison table previously (incorrectly) listed "Tab context menus" as a free feature.

Changes:

  • New page packages/docs/docs/core/panels/contextMenus.mdx (enterprise: true), covering:
    • Enterprise callout and the live <CodeRunner id="dockview/context-menu" /> example
    • Tab menu (getTabContextMenuItems): params, all built-in shortcuts (close, closeOthers, closeAll, closeLeft/Right, maximize, float, popout, pin, separator), custom label/action items, disabled items, custom component items (IContextMenuItemComponentProps with close()), and raw element items, with React/Vue/Angular/JS variants
    • Chip menu (getTabGroupChipContextMenuItems): built-in items (rename, colorPicker, collapse, close, separator), cross-linked to Tab groups
    • Per-case suppression (return [])
    • DocRef API tables across all four frameworks, following the existing tabGroups.mdx conventions
  • Fixed features.mdx: "Tab context menus" is now enterprise-only, and both context-menu rows link to the new page
  • Linked the new page from the editions.mdx enterprise list

Type of change

  • Documentation

Affected packages

  • docs

How to test

  • Run the docs site and open Core → Panels → Context menus; confirm the live example renders and the DocRef API tables populate for React/Vue/Angular/JavaScript.
  • Check the feature comparison table on the Features page shows both context-menu rows as enterprise-only with working links to the new page.

Checklist

  • Documentation-only change (the docs package is deliberately excluded from Prettier/format checks)
  • I have added or updated tests where applicable (N/A for docs)

🤖 Generated with Claude Code


Generated by Claude Code

Add packages/docs/docs/core/panels/contextMenus.mdx covering the
enterprise tab and chip context menu APIs (getTabContextMenuItems and
getTabGroupChipContextMenuItems): built-in item shortcuts, custom
label/component/element items, disabled items, and per-case
suppression. The whole ContextMenuModule lives in dockview-enterprise,
so the page is marked enterprise and the previously-free "Tab context
menus" row in the feature comparison is corrected to enterprise-only.
Link the new page from features.mdx and editions.mdx.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VgsaWoFVNNt4XKX864aDVD
@mathuo mathuo merged commit 7a9f162 into v8-branch Jul 9, 2026
4 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants