Usage in shiny apps
Looks awesome! Wondering if there could be a wrapper on the details() function specifically for Shiny usage, e.g.
details_shiny <- function(object, summary, ...) {
htmltools::HTML(
details::details(
object = object,
summary = summary,
lang = NULL,
imgur = FALSE,
output = "character",
...
)
)
}
where ... overrides the defaults provided above, perhaps?
thanks for the question!
this should work:
https://yonicd.github.io/details/articles/custom.html#raw
I'm hoping to use details block in shiny, not necessarily raw html in a details block :P
e.g. avoiding this

and getting this instead

(Problem is solved on my end, just suggesting/requesting a feature)
Thanks for the clarification. I’ll see how it can be added.
Adding a print method should be straight fw enough (print.details_shiny) https://github.com/yonicd/details/blob/master/R/print.R
@tanho63 try this: https://github.com/yonicd/details/commit/740300e228b2dfd0cc8328521f563f94ce15c9bf
the output type is "html"
Works great!