Interacting with the ComposerContext Menu
The Composer context menu is a native control that can be added to custom charts to provide users with a set of standard chart interactions. Your chart must be running an aggregated data query to leverage the context menu.
Default context menu actions:
Optional context menu options:
| Action | Description |
|---|---|
Actions |
Invoke an action for the visual. Only visible if an action template is defined and enabled for the data source. |
Link |
Access a dashboard that has been linked to the visual. Only visible if a dashboard link exists. |
Create Alert |
Open the create alert work area. |
Create a Context Menu with Custom Actions
Add custom actions to your context menu, and bind methods to left and right mouse click actions in place of default actions.
Define your base configuration object. This is optional; if you don't define a base configuration object, Composer deploys the default context menu behavior.
Optionally, include a customActions items array. Your customActions can be bound as a method for the left or right mouse click in place of one of the default actions.
Defining customActions:
| Option | Description |
|---|---|
|
A name for each of the Required. |
|
The action you define for the Required. |
|
An icon to associate with the Optional. |
Comments
0 comments
Please sign in to leave a comment.