I have some long text in a table that I display as a reactable. I would like the long text to be truncated, and only appear when hovering on top of it. So far, I have managed to truncate the text in the cells, but I cannot make the hovering to work. Any help?
library(reactable)
library(tidyverse)
reactable(
iris[1:5, ] %>% mutate(Species = 'This text is long and should only show up entirely when hovering'),
columns = list(
Species = colDef(
html = TRUE,
style = "
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
hover: visible")
)
)```