Skip to content
Snippets Groups Projects
Unverified Commit de2405c1 authored by github-automation-metabase's avatar github-automation-metabase Committed by GitHub
Browse files

docs - links 51.1 (#49122) (#49126)

parent cb13aefe
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@ See [History](../exploration-and-organization/history.md).
You can move outdated or unneeded models to trash, or delete them permanently. Deleting a model will affect questions that use it as a data source.
See [Deleting and restoring items](../exploration-and-organization/delete-and-restore.md#delete-and-restore-items).
See [Deleting and restoring items](../exploration-and-organization/delete-and-restore.md).
## Verifying a model
......
......@@ -87,6 +87,7 @@ const plugins = {
`dashcardMenu`: can be used in the InteractiveDashboard like this:
```typescript jsx
{% raw %}
<InteractiveDashboard
questionId={1}
plugins={{
......@@ -95,6 +96,7 @@ const plugins = {
},
}}
/>
{% endraw %}
```
#### Enabling/disabling default actions
......
......@@ -15,6 +15,7 @@ The Metabase Embedding SDK supports plugins to customize the behavior of compone
To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsConfig` prop:
```typescript jsx
{% raw %}
<MetabaseProvider
config={config}
theme={theme}
......@@ -24,6 +25,7 @@ To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsCon
>
{children}
</MetabaseProvider>
{% endraw %}
```
## Component plugins
......@@ -31,12 +33,14 @@ To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsCon
To use a plugin on a per-component basis, pass the plugin as a prop to the component:
```typescript jsx
{% raw %}
<InteractiveQuestion
questionId={1}
plugins={{
mapQuestionClickActions: [...],
}}
/>
{% endraw %}
```
## Further reading
......
......@@ -41,7 +41,9 @@ export default function App() {
You can pass parameter values to questions defined with SQL via `parameterValues` prop, in the format of `{parameter_name: parameter_value}`. Learn more about [SQL parameters](../../questions/native-editor/sql-parameters.md).
```jsx
{% raw %}
<StaticQuestion questionId={questionId} parameterValues={{ product_id: 50 }} />
{% endraw %}
```
## Embedding an interactive question
......@@ -94,6 +96,7 @@ Here's an example of using the `InteractiveQuestion` component with its default
To customize the layout, use namespaced components within the `InteractiveQuestion` component. For example:
```typescript jsx
{% raw %}
<InteractiveQuestion questionId={95}>
<div
style={{
......@@ -127,6 +130,7 @@ To customize the layout, use namespaced components within the `InteractiveQuesti
</div>
</div>
</InteractiveQuestion>
{% endraw %}
```
## Interactive question components
......
......@@ -33,7 +33,7 @@ If you're exporting a pivot table, you'll have the option to keep the table pivo
You can download up to 1 million rows.
You can change this limit with an environment variable: [`MB_DOWNLOAD_ROW_LIMIT`](../../configuring-metabase/environment-variables.md#mb-download-row-limit).
You can change this limit with an environment variable: [`MB_DOWNLOAD_ROW_LIMIT`](../../configuring-metabase/environment-variables.md).
## Exporting data via a public link
......
docs/questions/sharing/image-1.png

99.6 KiB

docs/questions/sharing/image.png

300 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment