Skip to content

Commit

Permalink
Merge branch '1404_shinylive_readme@main' of https://github.com/insig…
Browse files Browse the repository at this point in the history
…htsengineering/teal into 1404_shinylive_readme@main
  • Loading branch information
llrs-roche committed Feb 12, 2025
2 parents 686e5e9 + 1c6064d commit 3d61c77
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ app <- init(
module(
label = "iris histogram",
server = function(input, output, session, data) {
updateSelectInput(session = session,
inputId = "var",
choices = names(data()[["iris"]])[1:4])
updateSelectInput(
session = session,
inputId = "var",
choices = names(data()[["iris"]])[1:4]
)
output$hist <- renderPlot({
req(input$var)
Expand All @@ -108,9 +110,11 @@ app <- init(
ui = function(id) {
ns <- NS(id)
list(
selectInput(inputId = ns("var"),
label = "Column name",
choices = NULL),
selectInput(
inputId = ns("var"),
label = "Column name",
choices = NULL
),
plotOutput(outputId = ns("hist"))
)
}
Expand Down

0 comments on commit 3d61c77

Please sign in to comment.