Re: [R] shinyWidgets::sliderTextInput

2019-08-08 Thread Sigbert Klinke
Hi Erin, do you see the difference between sliderTextInput and selectInput? I would like to have the selectInput behaviour (list element name in display, but result as value of list element) in sliderTextInput as well. Best Sigbert --- library("shiny") library("shinyWidgets") ui <- fluidPa

Re: [R] shinyWidgets::sliderTextInput

2019-08-07 Thread Erin Hodgess
Hi Sigbert Here is something that has both the sliderTextInput and Radio Buttons, which may be helpful: library("shiny") library("shinyWidgets") ui <- fluidPage( br(), sliderTextInput( inputId = "mySliderText", label = "My House", choices = list("choice 1" = "choice 1","c

Re: [R] shinyWidgets::sliderTextInput

2019-08-07 Thread Sigbert Klinke
Hi, Is there a label argument, please? I think that might be it. In my example I had a label, but this not the problem since > choices=list("choice1"=1, "choice2"=2,"choice3"=3) > as.character(choices) [1] "1" "2" "3" delivers the result as it is used in sliderTextInput. I was hoping there

Re: [R] shinyWidgets::sliderTextInput

2019-08-06 Thread Erin Hodgess
Hi Sigbert: Is there a label argument, please? I think that might be it. Thanks, Erin On Tue, Aug 6, 2019 at 1:52 AM Sigbert Klinke wrote: > Hi, > > I'am using > > sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2, > "choice3"=3)) > > But in the shiny app the UI element shows '1

Re: [R] shinyWidgets::sliderTextInput

2019-08-06 Thread Eric Berger
Hi Sigbert, Just leave out the '=...', as in sliderTextInput('myinput', choices=list("choice1", "choice2", "choice3") ) HTH, Eric On Tue, Aug 6, 2019 at 10:52 AM Sigbert Klinke wrote: > Hi, > > I'am using > > sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2, > "choice3"=3))

[R] shinyWidgets::sliderTextInput

2019-08-06 Thread Sigbert Klinke
Hi, I'am using sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2, "choice3"=3)) But in the shiny app the UI element shows '1', '2', instead of 'choice1', 'choice2' etc. I think the reason is that in shinyTextInput is done if (!is.character(choices)) { choices <-