Patrick Balada Patrick Balada - 1 year ago 82
R Question

Adjust the height of a textInput box as a user keeps typing

I try to adjust the height of the box of a textInput. However, I am not familiar with CSS. I found some similar problems in which they recommend to use the following CSS snippet:

max-height: 200px;

I would very much appreciate if someone could help me to implement this into Shiny assuming the following is the text input I try to alter.

textInput("remarks", label = h3("Text input"), value = "")

Answer Source

A textarea may be what you are looking for:

   ui = fluidPage( h4('This is a text area:') 
                  ,tags$textarea(id = 'remarks', placeholder = 'Type here', rows = 3, value="" ) 
  server = function(input, output) { } 
  shinyApp(ui, server)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download