How to use the @grafana/runtime.getLocationSrv function in @grafana/runtime

To help you get started, we’ve selected a few @grafana/runtime 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 / features / dashboard / components / Inspector / PanelInspector.tsx View on Github external
onDismiss = () => {
    getLocationSrv().update({
      query: { inspect: null },
      partial: true,
    });
  };
github GridProtectionAlliance / openHistorian / Source / Applications / openHistorian / openHistorian / Grafana / public / app / core / services / keybindingSrv.ts View on Github external
this.bind('p i', () => {
      if (dashboard.meta.focusPanelId) {
        getLocationSrv().update({ partial: true, query: { inspect: dashboard.meta.focusPanelId } });
      }
    });
github GridProtectionAlliance / openHistorian / Source / Applications / openHistorian / openHistorian / Grafana / public / app / features / dashboard / utils / getPanelMenu.ts View on Github external
const onInspectPanel = (event: React.MouseEvent) => {
    event.preventDefault();
    getLocationSrv().update({
      partial: true,
      query: {
        inspect: panel.id,
      },
    });
  };
github GridProtectionAlliance / openHistorian / Source / Applications / openHistorian / openHistorian / Grafana / public / app / features / panel / panel_directive.ts View on Github external
function infoCornerClicked() {
        if (ctrl.error) {
          getLocationSrv().update({ partial: true, query: { inspect: ctrl.panel.id } });
        }
      }
github grafana / grafana / public / app / core / services / keybindingSrv.ts View on Github external
this.bind('p i', () => {
      if (dashboard.meta.focusPanelId) {
        getLocationSrv().update({ partial: true, query: { inspect: dashboard.meta.focusPanelId } });
      }
    });