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). ...@@ -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. 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 ## Verifying a model
......
...@@ -87,6 +87,7 @@ const plugins = { ...@@ -87,6 +87,7 @@ const plugins = {
`dashcardMenu`: can be used in the InteractiveDashboard like this: `dashcardMenu`: can be used in the InteractiveDashboard like this:
```typescript jsx ```typescript jsx
{% raw %}
<InteractiveDashboard <InteractiveDashboard
questionId={1} questionId={1}
plugins={{ plugins={{
...@@ -95,6 +96,7 @@ const plugins = { ...@@ -95,6 +96,7 @@ const plugins = {
}, },
}} }}
/> />
{% endraw %}
``` ```
#### Enabling/disabling default actions #### Enabling/disabling default actions
......
...@@ -15,6 +15,7 @@ The Metabase Embedding SDK supports plugins to customize the behavior of compone ...@@ -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: To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsConfig` prop:
```typescript jsx ```typescript jsx
{% raw %}
<MetabaseProvider <MetabaseProvider
config={config} config={config}
theme={theme} theme={theme}
...@@ -24,6 +25,7 @@ To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsCon ...@@ -24,6 +25,7 @@ To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsCon
> >
{children} {children}
</MetabaseProvider> </MetabaseProvider>
{% endraw %}
``` ```
## Component plugins ## Component plugins
...@@ -31,12 +33,14 @@ To use a plugin globally, add the plugin to the `MetabaseProvider`'s `pluginsCon ...@@ -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: To use a plugin on a per-component basis, pass the plugin as a prop to the component:
```typescript jsx ```typescript jsx
{% raw %}
<InteractiveQuestion <InteractiveQuestion
questionId={1} questionId={1}
plugins={{ plugins={{
mapQuestionClickActions: [...], mapQuestionClickActions: [...],
}} }}
/> />
{% endraw %}
``` ```
## Further reading ## Further reading
......
...@@ -41,7 +41,9 @@ export default function App() { ...@@ -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). 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 ```jsx
{% raw %}
<StaticQuestion questionId={questionId} parameterValues={{ product_id: 50 }} /> <StaticQuestion questionId={questionId} parameterValues={{ product_id: 50 }} />
{% endraw %}
``` ```
## Embedding an interactive question ## Embedding an interactive question
...@@ -94,6 +96,7 @@ Here's an example of using the `InteractiveQuestion` component with its default ...@@ -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: To customize the layout, use namespaced components within the `InteractiveQuestion` component. For example:
```typescript jsx ```typescript jsx
{% raw %}
<InteractiveQuestion questionId={95}> <InteractiveQuestion questionId={95}>
<div <div
style={{ style={{
...@@ -127,6 +130,7 @@ To customize the layout, use namespaced components within the `InteractiveQuesti ...@@ -127,6 +130,7 @@ To customize the layout, use namespaced components within the `InteractiveQuesti
</div> </div>
</div> </div>
</InteractiveQuestion> </InteractiveQuestion>
{% endraw %}
``` ```
## Interactive question components ## Interactive question components
......
...@@ -33,7 +33,7 @@ If you're exporting a pivot table, you'll have the option to keep the table pivo ...@@ -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 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 ## 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