Skip to content

docs: show Grid context menu items that depend on the clicked column - #6587

Draft
totally-not-ai[bot] wants to merge 1 commit into
mainfrom
docs/grid-context-menu-clicked-column
Draft

totally-not-ai[bot] wants to merge 1 commit into
mainfrom
docs/grid-context-menu-clicked-column

Conversation

@totally-not-ai

@totally-not-ai totally-not-ai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Grid's context menu docs didn't show how to vary the menu items by the column that was right-clicked. Flow now passes the clicked column to the menu through setDynamicContentProvider(), so this adds a section for it.

What changed

  • New "Items for the Clicked Column" subsection under Grid's Context Menu, with a 25.4 badge. Right-clicking an email address adds a "Send email" item, and right-clicking a phone number adds a "Call" item.
  • Flow example uses setDynamicContentProvider() and compares context.column() with the column references. Lit and React examples read the column from getEventContext() and build the items before the menu opens.
  • The text explains when the item or the column is null, and that returning false keeps the menu closed.
  • The existing Flow context menu example now uses setDynamicContentProvider() instead of the deprecated setDynamicContentHandler(). It behaves the same.

Test summary

  • mvn compile and mvn spotless:check pass.
  • ESLint and Prettier report nothing new on the new TypeScript examples. The only lint finding, the missing generated Person type, also shows up on the existing examples in a local checkout.
  • I haven't checked the rendered demos in a browser.

Working on behalf of Artur

Document setDynamicContentProvider(), which passes the clicked column
to the menu, with Lit and React variants using getEventContext(). The
existing context menu example now uses the provider instead of the
deprecated setDynamicContentHandler().
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6587.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from a526f1a

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.

0 participants