onDashboardLoad

onDashboardLoad

When Vizzly dashboard component loads it sends back information about the loaded dashboard.

The definition of the onDashboardLoad function is;

type DashboardCallback = {
  id: string,
  metadata: { [key: string]: string | number },
  scope: 'read' | 'read_write',
  dataSets: DataSet[]
}
<Vizzly.Dashboard
  onDashboardLoad={(loadedDashboard) => console.log(loadedDashboard)}
/>