Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
dashboard-scene
/
embedding
/
File Content:
EmbeddedDashboardTestPage.tsx
import React, { useState } from 'react'; import { Box } from '@grafana/ui'; import { Page } from 'app/core/components/Page/Page'; import { EmbeddedDashboard } from './EmbeddedDashboard'; export function EmbeddedDashboardTestPage() { const [state, setState] = useState('?from=now-5m&to=now'); return ( <Page navId="dashboards/browse" pageNav={{ text: 'Embedding dashboard', subTitle: 'Showing dashboard: Panel Tests - Pie chart' }} > <Box paddingY={2}>Internal url state: {state}</Box> <EmbeddedDashboard uid="lVE-2YFMz" initialState={state} onStateChange={setState} /> </Page> ); } export default EmbeddedDashboardTestPage;
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
EmbeddedDashboard.tsx
3529 bytes
0644
EmbeddedDashboardLazy.tsx
398 bytes
0644
EmbeddedDashboardTestPage.tsx
671 bytes
0644
N4ST4R_ID | Naxtarrr