new WorkspacePlugin(params)
Installs workspace controls and configuration for a chart or multichart template. Import this module before creating the chart to enable the plugin.
To rename the feature in the UI, set these before calling getDefaultConfig():
- CIQ.Workspaces.displayName — feature name shown in menus, dialogs, and toasts.
- CIQ.Workspaces.description — sentence shown in the workspace menu's info blurb.
params.toggleMarkup/.menus/.dialogs below are already built once, by getDefaultConfig(),
from those values.
It remains available through CIQ.Workspaces.getInstance().
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | Plugin parameters. Properties
|
- Since:
-
10.6.0
Example
import "./plugins/workspace/index.js";
const config = getDefaultConfig();
config.createChart();
