tabsets within tabset

Đang mở
#1 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r
Lĩnh vực
documentation

Hướng nghiên cứu

Start with _child1.qmd and render the example containing the nested {.panel-tabset}; compare it with the version where the wrapper is removed. Investigate the reported interaction with gt and tab_header(). Done means each homeworld shows separate Table and Plot tabs and the gt output is not corrupted.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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()
```

:::
Ngôn ngữ chính
R
Star
42
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.