library(shiny)
## demo from Shiny Gallery
## http://shiny.rstudio.com/gallery/widget-gallery.html
ui <- fluidPage(
tags$head(
tags$style(type="text/css", "#text{ height: 200px; word-wrap: break-word; }"),
tags$style(type="text/css", "#value{ height: 200px; word-wrap: break-word; }")
),
textInput("text", label=h3("Text input"), value="This is a very long string which I would like to wrap."),
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
)
server <- function(input, output) {
output$value <- renderPrint({ input$text })
}
## run
shinyApp(ui=ui, server=server)
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/b071538a-c3c3-4aec-9e28-9319a9caefa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/f9c39237-3f87-4743-835d-341fed15ae60%40googlegroups.com.