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
...
Learn about widget
config
here.
Instance
Learn about widget
instance here.
State
insightsDashboard.state(name, value)
loader
Type: Boolean
| Default: null
Toggle a custom loading state.
error
Type: String
| Default: null
Toggle a custom error message.
Events
insightsDashboard.on(event, handler)
chart:clone
insightsDashboard.on('chart:clone', chartId => {/* ... */})
Clone chart.
chart:remove
insightsDashboard.on('chart:remove', chartId => {/* ... */})
Remove chart.
chart:open
insightsDashboard.on('chart:open', chartId => {/* ... */})
Open chart in Chart Editor.
Example
const insightsDashboard = appmixer.ui.InsightsDashboard({
el: '#insights-dashboard'
})
insightsDashboard.open()