@grafana/runtime
Version:
Grafana Runtime Library
26 lines (25 loc) • 888 B
TypeScript
import * as React from 'react';
export interface EmbeddedDashboardProps {
uid?: string;
/**
* Use this property to override initial time and variable state.
* Example: ?from=now-5m&to=now&var-varname=value1
*/
initialState?: string;
/**
* Is called when ever the internal embedded dashboards url state changes.
* Can be used to sync the internal url state (Which is not synced to URL) with the external context, or to
* preserve some of the state when moving to other embedded dashboards.
*/
onStateChange?: (state: string) => void;
}
/**
* Returns a React component that renders an embedded dashboard.
* @alpha
*/
export declare let EmbeddedDashboard: React.ComponentType<EmbeddedDashboardProps>;
/**
*
* @internal
*/
export declare function setEmbeddedDashboard(component: React.ComponentType<EmbeddedDashboardProps>): void;