@@ -10,7 +10,27 @@ layout: new-docs
10
10
---
11
11
12
12
``` ts
13
- function EditableDashboard(props : EditableDashboardProps ): Element ;
13
+ function EditableDashboard(
14
+ props : {
15
+ drillThroughQuestionHeight: Height <string | number >;
16
+ drillThroughQuestionProps: DrillThroughQuestionProps ;
17
+ plugins: MetabasePluginsConfig ;
18
+ renderDrillThroughQuestion: () => ReactNode ;
19
+ } & {
20
+ dashboardId: SdkDashboardId ;
21
+ hiddenParameters: string [];
22
+ initialParameters: ParameterValues ;
23
+ withCardTitle: boolean ;
24
+ withDownloads: boolean ;
25
+ withTitle: boolean ;
26
+ } & {
27
+ className: string ;
28
+ style: CSSProperties ;
29
+ } & {
30
+ onLoad: (dashboard : null | MetabaseDashboard ) => void ;
31
+ onLoadWithoutCards: (dashboard : null | MetabaseDashboard ) => void ;
32
+ } & {},
33
+ ): Element ;
14
34
```
15
35
16
36
A dashboard component with the features available in the ` InteractiveDashboard ` component, as well as the ability to add and update questions, layout, and content within your dashboard.
@@ -19,9 +39,9 @@ A dashboard component with the features available in the `InteractiveDashboard`
19
39
20
40
<!-- [<snippet parameters>] -->
21
41
22
- | Parameter | Type | Description |
23
- | :-------- | :---------------------------------------------------------- | :---------- |
24
- | ` props ` | [ ` EditableDashboardProps ` ] ( ./api/EditableDashboardProps ) | |
42
+ | Parameter | Type | Description |
43
+ | :-------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------- |
44
+ | `props` | \{ `drillThroughQuestionHeight`: `Height`\<`string` \| `number`\>; `drillThroughQuestionProps`: [`DrillThroughQuestionProps`](./api/DrillThroughQuestionProps); `plugins`: [`MetabasePluginsConfig`](./api/MetabasePluginsConfig); `renderDrillThroughQuestion`: () => [`ReactNode`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L478); \} & \{ `dashboardId`: [`SdkDashboardId`](./api/SdkDashboardId); `hiddenParameters`: `string`[]; `initialParameters`: [`ParameterValues`](./api/ParameterValues); `withCardTitle`: `boolean`; `withDownloads`: `boolean`; `withTitle`: `boolean`; \} & \{ `className`: `string`; `style`: [`CSSProperties`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L2579); \} & \{ `onLoad`: (`dashboard`: `null` \| [`MetabaseDashboard`](./api/MetabaseDashboard)) => `void`; `onLoadWithoutCards`: (`dashboard`: `null` \| [`MetabaseDashboard`](./api/MetabaseDashboard)) => `void`; \} & \{ \} | |
25
45
26
46
<!-- [<endsnippet parameters>] -->
27
47
0 commit comments