DataInspectorExtensionEvents Type
Describes events this extension fires.
Declaration
export type DataInspectorExtensionEvents = {
dialogShowing: DataInspectorDialogArgs;
dialogShown: DataInspectorDialogArgs;
dialogHidden: DataInspectorDialogArgs;
gridInitialized: DataInspectorGridArgs;
gridContentReady: DataInspectorGridArgs;
}
Members
| 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. |
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:
function onBeforeRender(dashboardControl) {
let dataInspector = dashboardControl.findExtension("dataInspector");
if (dataInspector) {
dataInspector.on('dialogShowing', customizeDialog);
}
}
function customizeDialog(args) {
// ...
}