Learn R Programming

shinyMobile (version 0.7.0)

f7TextArea: Create an f7 text area input

Description

Create an f7 text area input

Usage

f7TextArea(inputId, label, value = "", placeholder = NULL, resize = FALSE)

Arguments

inputId

Text input id.

label

Text input label.

value

Text input value.

placeholder

Text input placeholder.

resize

Whether to box can be resized. Default to FALSE.

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(shinyMobile)

 shiny::shinyApp(
   ui = f7Page(
     title = "My app",
     f7TextArea(
      inputId = "textarea",
      label = "Text Area",
      value = "Lorem ipsum dolor sit amet, consectetur
       adipiscing elit, sed do eiusmod tempor incididunt ut
       labore et dolore magna aliqua",
      placeholder = "Your text here",
      resize = TRUE
     ),
     textOutput("value")
   ),
   server = function(input, output) {
     output$value <- renderText({ input$textarea })
   }
 )
}
# }

Run the code above in your browser using DataLab