dashboard-js-devexpress-dot-dashboard-779e55f5.md
Describes events this extension fires.
export type DashboardParameterDialogExtensionEvents = {
dynamicLookUpValuesLoaded: DynamicLookUpValuesLoadedArgs;
showing: DashboardParameterDialogArgs;
shown: DashboardParameterDialogArgs;
hidden: DashboardParameterDialogArgs;
}
| Name | Type | Description |
|---|---|---|
| dynamicLookUpValuesLoaded | DynamicLookUpValuesLoadedArgs |
Occurs after parameter values provided using a Dynamic List are loaded.
| | hidden | DashboardParameterDialogArgs |
Occurs after the Dashboard Parameters dialog is hidden.
| | showing | DashboardParameterDialogArgs |
Occurs before the Dashboard Parameters dialog is shown.
| | shown | DashboardParameterDialogArgs |
Occurs after the Dashboard Parameters dialog is shown.
|
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:
function onBeforeRender(dashboardControl) {
let dashboardParameterDialog = dashboardControl.findExtension("dashboardParameterDialog");
if (dashboardParameterDialog) {
dashboardParameterDialog.on('showing', customizeDialog);
}
}
function customizeDialog(args) {
// ...
}