mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
EventBus: add origin to all events and support nested EventBus (#33548)
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
DataLinkBuiltInVars,
|
||||
DataQuery,
|
||||
DataTransformerConfig,
|
||||
EventBus,
|
||||
EventBusSrv,
|
||||
FieldConfigSource,
|
||||
PanelPlugin,
|
||||
@@ -170,13 +169,18 @@ export class PanelModel implements DataConfigSource {
|
||||
isInView = false;
|
||||
configRev = 0; // increments when configs change
|
||||
hasRefreshed?: boolean;
|
||||
events: EventBus;
|
||||
cacheTimeout?: any;
|
||||
cachedPluginOptions: Record<string, PanelOptionsCache> = {};
|
||||
legend?: { show: boolean; sort?: string; sortDesc?: boolean };
|
||||
plugin?: PanelPlugin;
|
||||
dataSupport?: PanelPluginDataSupport;
|
||||
|
||||
/**
|
||||
* The PanelModel event bus only used for internal and legacy angular support.
|
||||
* The EventBus passed to panels is based on the dashboard event model.
|
||||
*/
|
||||
events: EventBusSrv;
|
||||
|
||||
private queryRunner?: PanelQueryRunner;
|
||||
|
||||
constructor(model: any) {
|
||||
|
||||
Reference in New Issue
Block a user