dashboard-js-devexpress-dot-dashboard-8a8b40df.md
Describes events this extension fires.
export type DataInspectorExtensionEvents = {
dialogShowing: DataInspectorDialogArgs;
dialogShown: DataInspectorDialogArgs;
dialogHidden: DataInspectorDialogArgs;
gridInitialized: DataInspectorGridArgs;
gridContentReady: DataInspectorGridArgs;
}
| Name | Type | Description |
|---|---|---|
| dialogHidden | DataInspectorDialogArgs |
Occurs when the Data Inspector dialog is hidden.
| | dialogShowing | DataInspectorDialogArgs |
Occurs before the Data Inspector dialog is shown.
| | dialogShown | DataInspectorDialogArgs |
Occurs after the Data Inspector dialog is shown.
| | gridContentReady | DataInspectorGridArgs |
Occurs after the Grid widget’s content is loaded.
| | gridInitialized | DataInspectorGridArgs |
Occurs before the Grid widget’s content is loaded.
|
Find the extension by its name (dataInspector) and pass the event handler’s name to subscribe to the DashboardExportExtension events.
The following code handles the DataInspectorExtensionOptions.onDialogShowing event:
function onBeforeRender(dashboardControl) {
let dataInspector = dashboardControl.findExtension("dataInspector");
if (dataInspector) {
dataInspector.on('dialogShowing', customizeDialog);
}
}
function customizeDialog(args) {
// ...
}