Back to Devexpress

DataInspectorExtensionEvents Type

dashboard-js-devexpress-dot-dashboard-8a8b40df.md

latest2.0 KB
Original Source

DataInspectorExtensionEvents Type

Describes events this extension fires.

Declaration

ts
export type DataInspectorExtensionEvents = {
    dialogShowing: DataInspectorDialogArgs;
    dialogShown: DataInspectorDialogArgs;
    dialogHidden: DataInspectorDialogArgs;
    gridInitialized: DataInspectorGridArgs;
    gridContentReady: DataInspectorGridArgs;
}

Members

NameTypeDescription
dialogHiddenDataInspectorDialogArgs

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.

|

Remarks

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:

javascript
function onBeforeRender(dashboardControl) {
  let dataInspector = dashboardControl.findExtension("dataInspector");
  if (dataInspector) {
    dataInspector.on('dialogShowing', customizeDialog);
  }
}
function customizeDialog(args) {
  // ...
}