Specifically, this works for tables produced with kableExtra which creates a very appealing effect. I was wondering if anyone has an idea how this may be doable with huxtable.
Here's an example Rmd to get a glimpse at what I mean. I'd like the huxtable to allow the hover effect that is visible in the kable.
---
output: bookdown::html_document2
---
```{r lib}
library(magrittr)
```
```{r kable}
iris %>%
head() %>%
kableExtra::kbl(caption = "a caption") %>%
kableExtra::kable_styling(bootstrap_options = "hover")
```
```{r huxtable}
iris %>%
head() %>%
huxtable::hux() %>%
huxtable::set_caption("a caption")
```
Related to: Is it possible to fix the head for a long huxtable?
If you inspect the underlying generated HTML for
kableExtratable, you would see, forbootstrap_options = "hover",kableExtrais using a css classtable-hover, which is creating such a hovering effect.Knowing this, one possible approach to attain the hovering effect for huxtables is just attaching the
table-hoverclass to all huxtables which could be done easily using javascript.