Skip to content
Snippets Groups Projects
Unverified Commit 4a0514b5 authored by Alex Yarosh's avatar Alex Yarosh Committed by GitHub
Browse files

[docs] Custom destinations in static embedding (#42080)


* custom destinations in static embedding

* Update docs/embedding/static-embedding.md

Co-authored-by: default avatarJeff Bruemmer <jeff.bruemmer@gmail.com>

---------

Co-authored-by: default avatarJeff Bruemmer <jeff.bruemmer@gmail.com>
parent e09397ca
No related branches found
No related tags found
No related merge requests found
---
title: Static embedding
redirect_from:
- /docs/latest/embedding/signed-embedding
- /docs/latest/embedding/signed-embedding
---
# Static embedding
......@@ -67,7 +67,7 @@ Once you've made a question or dashboard [embeddable](#making-a-question-or-dash
2. Make any changes and copy the code.
3. [Preview the code](#previewing-the-code-for-an-embed)
4. Add the code to the server code that builds your website.
6. Add the frontend code to the code that generates the page where you want the embedded item to appear.
5. Add the frontend code to the code that generates the page where you want the embedded item to appear.
For more examples, see our [reference apps repo](https://github.com/metabase/embedding-reference-apps).
......@@ -140,8 +140,8 @@ To refresh the results of a dashboard at a specific cadence, you can parameteriz
For example, the following code for generating an iframe URL for a dashboard would display the dashboard's title and refresh its results every 60 seconds.
```js
var iframeUrl = METABASE_SITE_URL + "/embed/dashboard/" + token +
"#titled=true&refresh=60";
var iframeUrl =
METABASE_SITE_URL + "/embed/dashboard/" + token + "#titled=true&refresh=60";
```
For the full list options you can parameterize, see [customizing the appearance of a static embed](./static-embedding-parameters.md#customizing-the-appearance-of-a-static-embed).
......@@ -171,6 +171,10 @@ Dashboards are a fixed aspect ratio, so if you'd like to ensure they're automati
<iframe src="http://metabase.example.com/embed/dashboard/TOKEN" onload="iFrameResize({}, this)"></iframe>
```
## Custom destinations on dashboards in static embeds
You can only use the **URL** option for [custom destinations](..//dashboards/interactive.md#custom-destinations) on dashboards with static embedding. External URLs will open in a new tab or window.
## Further reading
- [Parameters for static embeds](./static-embedding-parameters.md).
......
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