Skip to content

Commit

Permalink
Corrects ComboBox.R example
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Nov 13, 2023
1 parent f43d10c commit 167d5cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inst/examples/ComboBox.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ options <- list(
ui <- function(id) {
ns <- NS(id)
div(
ComboBox.shinyInput(ns("combo"), value = list(text = "some text"),
ComboBox.shinyInput(ns("combo"), value = "some text",
options = options, allowFreeform = TRUE
),
textOutput(ns("comboValue"))
Expand All @@ -20,7 +20,7 @@ ui <- function(id) {
server <- function(id) {
moduleServer(id, function(input, output, session) {
output$comboValue <- renderText({
sprintf("Value: %s", input$combo$text)
sprintf("Value: %s", input$combo)
})
})
}
Expand Down
4 changes: 2 additions & 2 deletions man/ComboBox.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 167d5cc

Please sign in to comment.