TextField.shinyInput: TextField

TextField.shinyInputR Documentation

TextField

Description

Visit the documentation at https://mui.com/api/Text-Field/ for more information.

Usage

TextField.shinyInput(inputId, ..., value = defaultValue)

Arguments

inputId

the shiny input id

...

args to pass to element

value

the default value of the element

Examples

library(shiny.mui)
library(shiny)

if (interactive()) {
  shinyApp(
    ui = div(
      TextField.shinyInput("text", fullWidth = T, value = "go", variant="standard", multiline = T),
      textOutput("textValue")
    ),
    server = function(input, output) {
      output$textValue <- renderText({
        sprintf("Value: %s", input$text)
      })
    }
  )
}

QuartzSoftwareLLC/shiny.mui documentation built on Aug. 25, 2022, 8:49 p.m.