Crossref with interactive tables (e.g., DT::datatable) #628
-
Good afternoon, I'm really enjoying using Quarto, so first a big thanks to the authors for putting it together! I'm especially enjoying the simplicity by which figures and tables can be labelled and cross-referenced, which brings me on to my query. I'm a frequent user of the DT package for interactive tables. An issue in RMarkdown was the automatic labelling of Does Quarto contain a more straightforward workaround for "forcing" an interactive table to be seen as a table? Under-the-hood in the HTML they may not strictly be tables, but from a reader's perspective they are, and it'd be strange to have to label them figures. Cheers! Reproducible example
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Currently the limitation is the same as answered in #782 (comment). ```{r}
#| label: fig-dt
#| tbl-cap: "My DT table."
DT::datatable(iris)
``` DT and other interactive tables are htmlwidgets and "special" HTML table, they cannot be referenced as Table yet. We'll try to improve support for this in the future. Related issues: #1084 |
Beta Was this translation helpful? Give feedback.
Currently the limitation is the same as answered in #782 (comment).
They can be referenced as figures
DT and other interactive tables are htmlwidgets and "special" HTML table, they cannot be referenced as Table yet. We'll try to improve support for this in the future.
Related issues: #1084