DashboardParameterDialogExtensionEvents Type
In This Article
Describes events this extension fires.
#Declaration
TypeScript
export type DashboardParameterDialogExtensionEvents = {
dynamicLookUpValuesLoaded: DynamicLookUpValuesLoadedArgs;
showing: DashboardParameterDialogArgs;
shown: DashboardParameterDialogArgs;
hidden: DashboardParameterDialogArgs;
}
#Members
Name | Type | Description |
---|---|---|
dynamic |
Dynamic |
Occurs after parameter values provided using a Dynamic List are loaded. |
hidden | Dashboard |
Occurs after the Dashboard Parameters dialog is hidden. |
showing | Dashboard |
Occurs before the Dashboard Parameters dialog is shown. |
shown | Dashboard |
Occurs after the Dashboard Parameters dialog is shown. |
#Remarks
Find the extension by its name (dashboardParameterDialog
) and pass the event handler’s name to subscribe on the DashboardParameterDialogExtension events.
The following code handles the DashboardParameterDialogExtension.onShowing event:
javascript
function onBeforeRender(dashboardControl) {
let dashboardParameterDialog = dashboardControl.findExtension("dashboardParameterDialog");
if (dashboardParameterDialog) {
dashboardParameterDialog.on('showing', customizeDialog);
}
}
function customizeDialog(args) {
// ...
}