How to use the @grafana/data.eventFactory function in @grafana/data

To help you get started, we’ve selected a few @grafana/data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github grafana / grafana / public / app / types / events.ts View on Github external
export const timeRangeUpdated = eventFactory('time-range-updated');

export const repeatsProcessed = eventFactory('repeats-processed');
export const rowExpanded = eventFactory('row-expanded');
export const rowCollapsed = eventFactory('row-collapsed');
export const templateVariableValueUpdated = eventFactory('template-variable-value-updated');
export const submenuVisibilityChanged = eventFactory('submenu-visibility-changed');

export const dataFramesReceived = eventFactory('data-frames-received');

export const graphClicked = eventFactory('graph-click');

export const thresholdChanged = eventFactory('threshold-changed');

export const zoomOut = eventFactory('zoom-out');

export const shiftTime = eventFactory('shift-time');

export const elasticQueryUpdated = eventFactory('elastic-query-updated');

export const layoutModeChanged = eventFactory('layout-mode-changed');

export const jsonDiffReady = eventFactory('json-diff-ready');

export const closeTimepicker = eventFactory('closeTimepicker');

export const routeUpdated = eventFactory('$routeUpdate');
github grafana / grafana / public / app / types / events.ts View on Github external
restore?: boolean;
  animate?: boolean;
  pos?: number;
}

/**
 * Events
 */

export const showDashSearch = eventFactory('show-dash-search');
export const hideDashSearch = eventFactory('hide-dash-search');
export const hideDashEditor = eventFactory('hide-dash-editor');
export const dashScroll = eventFactory('dash-scroll');
export const dashLinksUpdated = eventFactory('dash-links-updated');
export const saveDashboard = eventFactory('save-dashboard');
export const dashboardFetchStart = eventFactory('dashboard-fetch-start');
export const dashboardSaved = eventFactory('dashboard-saved');
export const removePanel = eventFactory('remove-panel');

export const searchQuery = eventFactory('search-query');

export const locationChange = eventFactory('location-change');

export const timepickerOpen = eventFactory('timepickerOpen');
export const timepickerClosed = eventFactory('timepickerClosed');

export const showModal = eventFactory('show-modal');
export const showConfirmModal = eventFactory('confirm-modal');
export const hideModal = eventFactory('hide-modal');

export const dsRequestResponse = eventFactory('ds-request-response');
export const dsRequestError = eventFactory('ds-request-error');
github grafana / grafana / public / app / features / dashboard / state / PanelModel.ts View on Github external
import {
  DataQuery,
  DataQueryResponseData,
  PanelPlugin,
  PanelEvents,
  DataLink,
  DataTransformerConfig,
  ScopedVars,
} from '@grafana/data';

import config from 'app/core/config';

import { PanelQueryRunner } from './PanelQueryRunner';
import { eventFactory } from '@grafana/data';

export const panelAdded = eventFactory('panel-added');
export const panelRemoved = eventFactory('panel-removed');

export interface GridPos {
  x: number;
  y: number;
  w: number;
  h: number;
  static?: boolean;
}

const notPersistedProperties: { [str: string]: boolean } = {
  events: true,
  fullscreen: true,
  isEditing: true,
  isInView: true,
  hasRefreshed: true,
github grafana / grafana / public / app / types / events.ts View on Github external
export const playlistStarted = eventFactory('playlist-started');
export const playlistStopped = eventFactory('playlist-stopped');

export const toggleKioskMode = eventFactory('toggle-kiosk-mode');
export const toggleViewMode = eventFactory('toggle-view-mode');

export const timeRangeUpdated = eventFactory('time-range-updated');

export const repeatsProcessed = eventFactory('repeats-processed');
export const rowExpanded = eventFactory('row-expanded');
export const rowCollapsed = eventFactory('row-collapsed');
export const templateVariableValueUpdated = eventFactory('template-variable-value-updated');
export const submenuVisibilityChanged = eventFactory('submenu-visibility-changed');

export const dataFramesReceived = eventFactory('data-frames-received');

export const graphClicked = eventFactory('graph-click');

export const thresholdChanged = eventFactory('threshold-changed');

export const zoomOut = eventFactory('zoom-out');

export const shiftTime = eventFactory('shift-time');

export const elasticQueryUpdated = eventFactory('elastic-query-updated');

export const layoutModeChanged = eventFactory('layout-mode-changed');

export const jsonDiffReady = eventFactory('json-diff-ready');

export const closeTimepicker = eventFactory('closeTimepicker');
github grafana / grafana / public / app / types / events.ts View on Github external
export const dsRequestResponse = eventFactory('ds-request-response');
export const dsRequestError = eventFactory('ds-request-error');

export const graphHover = eventFactory('graph-hover');
export const graphHoverClear = eventFactory('graph-hover-clear');

export const toggleSidemenuMobile = eventFactory('toggle-sidemenu-mobile');
export const toggleSidemenuHidden = eventFactory('toggle-sidemenu-hidden');

export const playlistStarted = eventFactory('playlist-started');
export const playlistStopped = eventFactory('playlist-stopped');

export const toggleKioskMode = eventFactory('toggle-kiosk-mode');
export const toggleViewMode = eventFactory('toggle-view-mode');

export const timeRangeUpdated = eventFactory('time-range-updated');

export const repeatsProcessed = eventFactory('repeats-processed');
export const rowExpanded = eventFactory('row-expanded');
export const rowCollapsed = eventFactory('row-collapsed');
export const templateVariableValueUpdated = eventFactory('template-variable-value-updated');
export const submenuVisibilityChanged = eventFactory('submenu-visibility-changed');

export const dataFramesReceived = eventFactory('data-frames-received');

export const graphClicked = eventFactory('graph-click');

export const thresholdChanged = eventFactory('threshold-changed');

export const zoomOut = eventFactory('zoom-out');

export const shiftTime = eventFactory('shift-time');
github grafana / grafana / public / app / types / events.ts View on Github external
export const graphHover = eventFactory('graph-hover');
export const graphHoverClear = eventFactory('graph-hover-clear');

export const toggleSidemenuMobile = eventFactory('toggle-sidemenu-mobile');
export const toggleSidemenuHidden = eventFactory('toggle-sidemenu-hidden');

export const playlistStarted = eventFactory('playlist-started');
export const playlistStopped = eventFactory('playlist-stopped');

export const toggleKioskMode = eventFactory('toggle-kiosk-mode');
export const toggleViewMode = eventFactory('toggle-view-mode');

export const timeRangeUpdated = eventFactory('time-range-updated');

export const repeatsProcessed = eventFactory('repeats-processed');
export const rowExpanded = eventFactory('row-expanded');
export const rowCollapsed = eventFactory('row-collapsed');
export const templateVariableValueUpdated = eventFactory('template-variable-value-updated');
export const submenuVisibilityChanged = eventFactory('submenu-visibility-changed');

export const dataFramesReceived = eventFactory('data-frames-received');

export const graphClicked = eventFactory('graph-click');

export const thresholdChanged = eventFactory('threshold-changed');

export const zoomOut = eventFactory('zoom-out');

export const shiftTime = eventFactory('shift-time');

export const elasticQueryUpdated = eventFactory('elastic-query-updated');
github grafana / grafana / public / app / types / events.ts View on Github external
export interface DashScrollPayload {
  restore?: boolean;
  animate?: boolean;
  pos?: number;
}

/**
 * Events
 */

export const showDashSearch = eventFactory('show-dash-search');
export const hideDashSearch = eventFactory('hide-dash-search');
export const hideDashEditor = eventFactory('hide-dash-editor');
export const dashScroll = eventFactory('dash-scroll');
export const dashLinksUpdated = eventFactory('dash-links-updated');
export const saveDashboard = eventFactory('save-dashboard');
export const dashboardFetchStart = eventFactory('dashboard-fetch-start');
export const dashboardSaved = eventFactory('dashboard-saved');
export const removePanel = eventFactory('remove-panel');

export const searchQuery = eventFactory('search-query');

export const locationChange = eventFactory('location-change');

export const timepickerOpen = eventFactory('timepickerOpen');
export const timepickerClosed = eventFactory('timepickerClosed');

export const showModal = eventFactory('show-modal');
export const showConfirmModal = eventFactory('confirm-modal');
export const hideModal = eventFactory('hide-modal');
github grafana / grafana / public / app / types / events.ts View on Github external
export const timepickerClosed = eventFactory('timepickerClosed');

export const showModal = eventFactory('show-modal');
export const showConfirmModal = eventFactory('confirm-modal');
export const hideModal = eventFactory('hide-modal');

export const dsRequestResponse = eventFactory('ds-request-response');
export const dsRequestError = eventFactory('ds-request-error');

export const graphHover = eventFactory('graph-hover');
export const graphHoverClear = eventFactory('graph-hover-clear');

export const toggleSidemenuMobile = eventFactory('toggle-sidemenu-mobile');
export const toggleSidemenuHidden = eventFactory('toggle-sidemenu-hidden');

export const playlistStarted = eventFactory('playlist-started');
export const playlistStopped = eventFactory('playlist-stopped');

export const toggleKioskMode = eventFactory('toggle-kiosk-mode');
export const toggleViewMode = eventFactory('toggle-view-mode');

export const timeRangeUpdated = eventFactory('time-range-updated');

export const repeatsProcessed = eventFactory('repeats-processed');
export const rowExpanded = eventFactory('row-expanded');
export const rowCollapsed = eventFactory('row-collapsed');
export const templateVariableValueUpdated = eventFactory('template-variable-value-updated');
export const submenuVisibilityChanged = eventFactory('submenu-visibility-changed');

export const dataFramesReceived = eventFactory('data-frames-received');

export const graphClicked = eventFactory('graph-click');
github grafana / grafana / public / app / types / events.ts View on Github external
handleIndex: any;
}

export interface DashScrollPayload {
  restore?: boolean;
  animate?: boolean;
  pos?: number;
}

/**
 * Events
 */

export const showDashSearch = eventFactory('show-dash-search');
export const hideDashSearch = eventFactory('hide-dash-search');
export const hideDashEditor = eventFactory('hide-dash-editor');
export const dashScroll = eventFactory('dash-scroll');
export const dashLinksUpdated = eventFactory('dash-links-updated');
export const saveDashboard = eventFactory('save-dashboard');
export const dashboardFetchStart = eventFactory('dashboard-fetch-start');
export const dashboardSaved = eventFactory('dashboard-saved');
export const removePanel = eventFactory('remove-panel');

export const searchQuery = eventFactory('search-query');

export const locationChange = eventFactory('location-change');

export const timepickerOpen = eventFactory('timepickerOpen');
export const timepickerClosed = eventFactory('timepickerClosed');

export const showModal = eventFactory('show-modal');
export const showConfirmModal = eventFactory('confirm-modal');
github grafana / grafana / public / app / types / events.ts View on Github external
export const dashScroll = eventFactory('dash-scroll');
export const dashLinksUpdated = eventFactory('dash-links-updated');
export const saveDashboard = eventFactory('save-dashboard');
export const dashboardFetchStart = eventFactory('dashboard-fetch-start');
export const dashboardSaved = eventFactory('dashboard-saved');
export const removePanel = eventFactory('remove-panel');

export const searchQuery = eventFactory('search-query');

export const locationChange = eventFactory('location-change');

export const timepickerOpen = eventFactory('timepickerOpen');
export const timepickerClosed = eventFactory('timepickerClosed');

export const showModal = eventFactory('show-modal');
export const showConfirmModal = eventFactory('confirm-modal');
export const hideModal = eventFactory('hide-modal');

export const dsRequestResponse = eventFactory('ds-request-response');
export const dsRequestError = eventFactory('ds-request-error');

export const graphHover = eventFactory('graph-hover');
export const graphHoverClear = eventFactory('graph-hover-clear');

export const toggleSidemenuMobile = eventFactory('toggle-sidemenu-mobile');
export const toggleSidemenuHidden = eventFactory('toggle-sidemenu-hidden');

export const playlistStarted = eventFactory('playlist-started');
export const playlistStopped = eventFactory('playlist-stopped');

export const toggleKioskMode = eventFactory('toggle-kiosk-mode');
export const toggleViewMode = eventFactory('toggle-view-mode');