Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabsets within tabset #1

Open
LeenSonneveld opened this issue Jan 25, 2023 · 1 comment
Open

tabsets within tabset #1

LeenSonneveld opened this issue Jan 25, 2023 · 1 comment

Comments

@LeenSonneveld
Copy link

LeenSonneveld commented Jan 25, 2023

Thanks for the great examples.

Is is possible to extend the example by showing how to make tabset within a tabset?
E.g. for every homeworld I want a separate tab for a table and a plot.
I modifed the _child1.qmd to code below, but now all tabs are empty
When i remove the ::: {panel-tabset}, the headings and tables are shown (but not in tabs)

I also noticed that as tab_header() is added to gt, the output get corrupted

## `r hw`

::: {.panel-tabset}
### Table

```{r}
#| echo: false

starwars %>%
  filter(homeworld == hw) %>%
  count(sex) %>%
  head() %>%
  gt()

```

### Plot
```{r}
#| echo: false
#| warning: false

starwars %>%
  filter(homeworld == hw) |> 
  ggplot2::ggplot(aes(x = height, y = mass)) + 
  geom_point()
```

:::
@LeenSonneveld
Copy link
Author

this is related to tje quarto version.
When i use quarto 1.2.313 the example above works as expected

I was using the .3.124 (pre-build version) which gave no output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant