Skip to content

Commit a99c75f

Browse files
fix template to pass style and only do 1 %
1 parent 566df78 commit a99c75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/templates/widget_r.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ${name} <- function(message, width = NULL, height = NULL, elementId = NULL) {
3838
#' @name ${name}-shiny
3939
#'
4040
#' @export
41-
${name}Output <- function(outputId, width = '100%%', height = '400px'){
41+
${name}Output <- function(outputId, width = '100%', height = '400px'){
4242
htmlwidgets::shinyWidgetOutput(outputId, '${name}', width, height, package = '${package}')
4343
}
4444

@@ -57,6 +57,6 @@ ${name}_html <- function(id, style, class, ...) {
5757
reactR::html_dependency_corejs(),
5858
reactR::html_dependency_react(),
5959
reactR::html_dependency_reacttools(),
60-
htmltools::tags$div(id = id, class = class)
60+
htmltools::tags$div(id = id, class = class, style = style)
6161
)
6262
}

0 commit comments

Comments
 (0)