mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: fire an event when changing annotations (#37175)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DataFrame } from '../types';
|
||||
import { AnnotationEvent, DataFrame } from '../types';
|
||||
import { BusEventWithPayload } from './types';
|
||||
|
||||
/**
|
||||
@@ -34,3 +34,8 @@ export class DataHoverClearEvent extends BusEventWithPayload<DataHoverPayload> {
|
||||
export class DataSelectEvent extends BusEventWithPayload<DataHoverPayload> {
|
||||
static type = 'data-select';
|
||||
}
|
||||
|
||||
/** @alpha */
|
||||
export class AnnotationChangeEvent extends BusEventWithPayload<Partial<AnnotationEvent>> {
|
||||
static type = 'annotation-event';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user