DataInspectorExtensionEvents Type
In This Article
Describes events this extension fires.
#Declaration
TypeScript
export type DataInspectorExtensionEvents = {
dialogShowing: DataInspectorDialogArgs;
dialogShown: DataInspectorDialogArgs;
dialogHidden: DataInspectorDialogArgs;
gridInitialized: DataInspectorGridArgs;
gridContentReady: DataInspectorGridArgs;
}
#Members
Name | Type | Description |
---|---|---|
dialog |
Data |
Occurs when the Data Inspector dialog is hidden. |
dialog |
Data |
Occurs before the Data Inspector dialog is shown. |
dialog |
Data |
Occurs after the Data Inspector dialog is shown. |
grid |
Data |
Occurs after the Grid widget’s content is loaded. |
grid |
Data |
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) {
// ...
}