How do I set title for each tab in a tabset of a dashboard which contains iframe elements? #8013
-
DescriptionI have a tabset with 3 tabs like below, how do I customize title for each tab instead of showing tab 1, 2, 3? ---
title: "My Dashboard"
format: dashboard
---
## row
### tabset1 {.tabset title="Tabset 1"}
<iframe></iframe>
<iframe></iframe>
<iframe></iframe>
I tried wrapping ::: {title="Iframe 1"}
<iframe></iframe>
::: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
See https://quarto.org/docs/interactive/layout.html#tabset-panel. For more, please share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```

The end.
```` |
Beta Was this translation helpful? Give feedback.
Why don't you follow the examples in the documentation?
I don't expect title in random div to have any meaning.
The examples show: a card example, code cells example, and heading example.
Don't make up syntaxes.
In your case, the tabset title should be defined with headings as in regular document type.
Below nearly an exact copy of the example in https://quarto.org/docs/dashboards/layout.html#tabsets which should just work, if not, then it's a bug.