DashboardExportExtensionEvents Type
In This Article
Describes events this extension fires.
#Declaration
TypeScript
export type DashboardExportExtensionEvents = {
exportDialogShowing: DashboardExportDialogArgs;
exportDialogShown: DashboardExportDialogArgs;
exportDialogHidden: DashboardExportDialogArgs;
}
#Members
Name | Type | Description |
---|---|---|
export |
Dashboard |
Occurs when the export dialog is hidden. |
export |
Dashboard |
Occurs before the export dialog is shown. |
export |
Dashboard |
Occurs after the export dialog is shown. |
#Remarks
Find the extension by its name (dashboardExport
) and pass the event handler’s name to subscribe on the DashboardExportExtension events.
The following code handles the DashboardExportExtensionOptions.onExportDialogShowing event:
javascript
function onBeforeRender(dashboardControl) {
let exportExtension = dashboardControl.findExtension("dashboardExport");
if (exportExtension) {
exportExtension.on('exportDialogShowing', customizeDialog);
}
}
function customizeDialog(args) {
// ...
}