Questions tagged [shinywidgets]

177 questions
1
vote
0 answers

Is there is any way for sliderInput() or sliderTextInput() to have NA or NULL default value?

Is there any way for shiny input which looks like slider to have initial NULL or NA value? Both sliderInput and sliderTextInput don't allow for their default value to be null. I'm well aware that selectInput allows for that (by defaulting to…
M_Kos
  • 78
  • 8
1
vote
1 answer

Plotly scatter plot in Shiny in R; plot is not updating nor is it fully interactive

I am trying to create an interactive scatter plot within Shiny using the plotly library, where I can plot grouped data and move my cursor over each data point. I am new to plotly but have used Shiny extensively. Here is a mock example that I have…
metaltoaster
  • 380
  • 2
  • 15
1
vote
1 answer

How to stop dropdownButton closing with every selectInput selection

I am working on a shiny app that has multiple selectInput under a dropDownButton menu. Problem is that when users select one selectInput the dropdownButton closes. For selecting all the selectInput users need to click on the dropdownButton multiple…
Tanzir
  • 11
  • 1
1
vote
3 answers

arrage `selectInput` and `pickerInput` inline on the same row

In the app below I want to place a shinyWidgets::pickerInput inline next to a shiny::selectInput. Two inputs of the same kind (either pickerInput or selectInput) can be placed on the same line just by wrapping them in a div(style = "inline-block").…
TimTeaFan
  • 17,549
  • 4
  • 18
  • 39
1
vote
0 answers

Shiny R Shinywidgets - How to handle empty autonumericinput when it reads as 0?

I was interested in converting my numericInputs into autonumericInputs from the shinywidgets package. My primary issue is that even when the default value of autonumericInput is NA/NULL/"", the output still reads as 0, and counts it as having 1…
Silentdevildoll
  • 1,187
  • 1
  • 6
  • 12
1
vote
1 answer

TextInputIcon (from Shinywidgets) with password entry

I need to create an TextInput (Shiny) with an icon inside it (like placeholder) without css and javascript. I've already done this using the textInputIcon function, as below: shinyWidgets::textInputIcon(inputId = ns("txt_username"), …
Quizicall
  • 133
  • 6
1
vote
2 answers

How to change slider bar color using setSliderColor on multiple sliders when using renderUI in R Shiny

I have multiple sliders that are reactive upon other data that I want to change the color of. I'm trying to avoid long bouts of CSS code, so I'd like to use shinyWidget's setSliderColor() function is possible. This answer worked when I just had one…
J.Sabree
  • 2,280
  • 19
  • 48
1
vote
1 answer

PickerInput subcategories with only one element

I've been trying to make a pickerInput from package ShinyWidgets with subcategories. library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2("Select / Deselect all"), pickerInput( inputId = "p1", label = "Select all option", …
K.Hua
  • 769
  • 4
  • 20
1
vote
1 answer

Formatting options for prettyCheckboxGroup are not applied when using updatePrettyCheckboxGroup

I am writing a Shiny app where the prettyCheckboxGroup choices are populated by a user-uploaded .csv file. If I manually set the choices (e.g. "A", "B", "C"), then I can change status, shape, outline, etc. However, if I use updatePrettyCheckboxGroup…
JJGabe
  • 383
  • 1
  • 2
  • 10
1
vote
1 answer

Error when creating shiny dashboard and using datamods library

I am experimenting with the datamods package in R. The package can be found here: https://dreamrs.github.io/datamods/reference/index.html My goal is to dynamically create interactive filters for all variables that are specified (in the vars…
1
vote
1 answer

Have pickerInput dropdown placed in front of confirmSweetAlert Buttons

I'm trying to get the pickerInput dropdown placed in front of the confirmSweetAlert buttons, but using z-index within CSS doesn't appear to work. Any other suggestions? library(shiny) library(shinyWidgets) ui <- fluidPage( actionButton( …
m.yoshih
  • 59
  • 6
1
vote
1 answer

How to change knobInputs parameter (readOnly) in shiny with updateKnobInput?

I have a shiny app that uses knobInputs from shinywidgets. I need to change some of the parameters dynamically in the server. I know how to change the value of a knob using updateKnobInput, but I don't understand how to change the other parameters.…
Jans
  • 13
  • 2
1
vote
1 answer

updateRadioGroupButtons removes css

I'm using radioGroupButtons with different colors based on this code: https://github.com/dreamRs/shinyWidgets/issues/41# Now I want to be able to update the choices, but the colors disappears when i'm updating with updateRadioGroupButtons. If i'm…
motch
  • 458
  • 4
  • 13
1
vote
1 answer

Syncing slectizeInput widget input with multiple checkboxGroupButtons widget inputs

I have multiple checkboxGroupButton widgets and a selectizeInput widget in my shiny app. Both types of input widgets utilise the same set of choices, and serve the same purpose. So I want to sync both of them; update the selectizeInput selectedTags,…
z star
  • 684
  • 6
  • 19
1
vote
1 answer

Change shinyWidget's switchInput default colors in Shiny app

How to change color for SwitchInput elements (from ShinyWidgets package)?