R/reactable_helpers.R
dui_for_reactable.Rd
Convert 'dataui' to 'reactable' Custom Render Function
dui_for_reactable(dui, jsarg = "cellInfo")
dui |
|
---|
htmlwidgets::JS
of class JS_EVAL
if(requireNamespace("reactable")) { # create data frame with a list column df <- data.frame(x=1) df$x[1] <- list(1:10) dui_add_reactable_dep( reactable::reactable( df, columns = list( x = reactable::colDef( cell = dui_for_reactable(dui_sparkline( data = htmlwidgets::JS("cellInfo.value"), components=list( dui_sparklineseries() ) ) )) ) ) ) }#> #>#> #>