API Reference
Namespaces
Modules
Classes
Events
Global
Externals

Class: WorkspacePlugin

CIQ. WorkspacePlugin (params)


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():

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
Name Type Argument Default Description
context CIQ.UI.Context

Chart UI context.

container string

Toolbar selector within the template.

toggleMarkup string

Markup for the workspace controls.

menus object <optional>

Workspace menu definition to register.

dialogs object <optional>

Dialog definitions to register.

nameValueStore function <optional>

Snapshot storage constructor.

loadSample boolean <optional>
false

Load sample read-only workspaces.

cb function <optional>

Callback after workspace storage loads.

loadWorkspaceId string <optional>

Workspace to load on initialization.

Since:
  • 10.6.0

Example
import "./plugins/workspace/index.js";
const config = getDefaultConfig();
config.createChart();