Insights Dashboard
Browse and manipulate charts created by the current user.

Configuration
Set up a new instance with config parameters and set/get methods:
const insightsDashboard = appmixer.ui.InsightsDashboard(config)
insightsDashboard.set(key, value)
insightsDashboard.get(key)config.el ...
config.el ...Instance
State
insightsDashboard.state(name, value)loader
loaderType: Boolean | Default: null
Toggle a custom loading state.
error
errorType: String | Default: null
Toggle a custom error message.
Events
insightsDashboard.on(event, handler)chart:clone
chart:cloneinsightsDashboard.on('chart:clone', chartId => {/* ... */})Clone chart.
chart:remove
chart:removeinsightsDashboard.on('chart:remove', chartId => {/* ... */})Remove chart.
chart:open
chart:openinsightsDashboard.on('chart:open', chartId => {/* ... */})Open chart in Chart Editor.
Example
const insightsDashboard = appmixer.ui.InsightsDashboard({
el: '#insights-dashboard'
})
insightsDashboard.open()Was this helpful?
