Open dmenne opened 2 years ago
Sort of. I still get errors about the JS not loading. But it eventually does and works fine. There's an issue open in golem for this: ThinkR-open/golem/issues/746
It is really irritating that there has been a depreciation of the old js in favor of shinyjs, but clean no working solution is available. I will try to get rid of golem quickly, it is more confusing than helpful.
No errors:
app_ui <- function(request) {
# app_sys <- system.file corrects for different path with devtools/loadall and package
golem::add_resource_path("www", app_sys("app/www"), warn_empty = TRUE)
tagList(
favicon(),
shinyjs::useShinyjs(),
shinyjs::extendShinyjs("www/jscode.js", functions = c("pageCol")),
selectInput("col", "Colour:",
c("white", "yellow", "red", "blue", "purple"))
)
}
Same problem for me - have you found a solution? See also https://github.com/ThinkR-open/golem/issues/503