We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it make sense to also add Shiny binding functions like in {safetyGraphics} prepareChart function? Something like below?
prepareChart
sgV2's chartsTab module is great, however, the following binding might add flexibility to drop a widget to a Shiny app without having to use tab UI.
chartsTab
#' @export meta_widgetOutput <- function(outputId, widgetName, width = "100%", height = "400px") { htmlwidgets::shinyWidgetOutput(outputId, widgetName, width, height, package="safetyCharts") } #' @export meta_renderWidget <- function(expr, widgetName, env = parent.frame(), quoted = FALSE) { widgetOutput <- function(outputId, width = "100%", height = "400px") { htmlwidgets::shinyWidgetOutput(outputId, widgetName, width, height, package="safetyCharts") } if (!quoted) { expr <- substitute(expr) } # force quoted params <- list( expr = expr, outputFunction = widgetOutput, env = env, quoted = quoted, cacheHint = "auto" ) do.call( htmlwidgets::shinyRenderWidget, params) }
Originally posted by @xni7 in #101 (review)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Would it make sense to also add Shiny binding functions like in {safetyGraphics}
prepareChart
function? Something like below?sgV2's
chartsTab
module is great, however, the following binding might add flexibility to drop a widget to a Shiny app without having to use tab UI.Originally posted by @xni7 in #101 (review)
The text was updated successfully, but these errors were encountered: