pbi_context_menu
Opens a Power BI visual's context menu by right-clicking, reads the menu items, and optionally clicks a matching item. Returns the menu state and items. If no click is provided, closes the menu.
Instructions
Right-click a data point / visual to open its context menu and read the items (drillthrough, Show as a table, Summarize, …). Right-clicks at the on-path point for SVG (else bbox center). With click, invokes the menu item matching (exact then contains) it and returns {opened, items, clicked, clickedItem}. Without click, reads items then presses Escape to CLOSE the menu (leaves no menu open). Returns {opened:false, reason} if no menu appeared.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| click | No | ||
| selector | No | ||
| ariaLabel | No |