Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R: shiny: increase width of text input control created by `textInput`

Tags:

r

shiny

I have almost completed a web app, which allows the user to subset the data frame underlying the web app, using the text input control created by textInput; see my related question for parsing the string as an expression.

It would be more user friendly if I could increase the width of this text input control. Does anybody know how to do this?

Cheers for any help.

like image 654
Mullefa Avatar asked Jan 12 '23 12:01

Mullefa


1 Answers

If your textInput is as follows:

textInput(inputId="someid", label="somelable", value = 0.0)
tags$head(tags$style(type="text/css", "#someid {width: 150px}")),

you can add some css.

or

tags$head(
    tags$link(rel = 'stylesheet', type = 'text/css', href = 'styles.css'),
)

and add an appropriate entry in styles.css

like image 123
jdharrison Avatar answered Jan 23 '23 11:01

jdharrison