Questions tagged [shinywidgets]

177 questions
14
votes
2 answers

Is there a way to select an entire group of choices on a pickerInput from shinyWidgets?

Here is a simple reproducible example: library(shiny) library(shinyWidgets) ui <- fluidPage( pickerInput("test",choices=list("A"=c(1,2,3,4,5),"B"=c(6,7,8,9,10)),multiple=TRUE), textOutput("testOutput") ) server <- function(input, output)…
user16051136
9
votes
1 answer

How to avoid collapsing with shinyWidgets dropdown and a datatable

I want to display a spreadsheet with some information in shinyWidgets dropdown, sometimes spanning multiple pages. If you click on the next page, the dropdown closes again. How can I avoid this? library(shiny) library(shinyWidgets) ui <-…
SeGa
  • 9,454
  • 3
  • 31
  • 70
6
votes
1 answer

How to format the tick labels of the noUiSlider with SI symbols?

Here is how my noUiSlider looks like: I would like to format the tick labels as: 1000 -> 1K, 900000 -> 900K, 5000000 -> 5M, etc; i.e. abbreviating the number with the appropriate SI symbol. library(shiny) library(shinyWidgets) ui <- fluidPage( …
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
5
votes
2 answers

Trigger observeEvent in Shiny even when condition hasn't changed

I am having some trouble getting the functionality in my app that I'm looking for because of the way observeEvent works (which is normally very intuitive). The basic functionality I'm looking for is that a user can input a couple numbers, click…
phalteman
  • 3,442
  • 1
  • 29
  • 46
5
votes
1 answer

Adding country flag to pickerinput shinywidgets

There is a example how to add country flags to checkBoxGroupInput here https://gist.github.com/bborgesr/f2c865556af3b92e6991e1a34ced2a4a I am trying to adjust the code slightly to achieve the same result using pickerinput from shinywidgets. However,…
MLEN
  • 2,162
  • 2
  • 20
  • 36
4
votes
0 answers

shinyWidgets updatePickerInput() server-side update (similar to updateSelectizeInput function)?

Does anyone know of a way to use shinyWidgets::pickerInput() with a large number of choices, but speed up the rendering? (similar to server-side selectize using updateSelectizeInput()) What I'm ultimately trying to do: have a shinyWidgets…
ForceLeft415
  • 277
  • 4
  • 14
4
votes
0 answers

airDatePickerInput not working as expected when setting date

In Shiny, when I try to update any airDatePickerInput using the updateAirDateInput function, the date updates incorrectly. If I tell updateAirDateInput to set the date as "2020-02-01", it will set the date to "2020-01-01", 1 day less than I want.…
Frank
  • 952
  • 1
  • 9
  • 23
4
votes
1 answer

Remove "Select All" action button from pickerInput using shinywidgets

I am using shinywidgets pickerinput to create a dropdown for the user to select their country or countries of interest with the code below. I would like to remove the ability to “Select All” i.e. the user should only be able to select a few…
Aveshen Pillay
  • 431
  • 3
  • 13
4
votes
1 answer

Change color of notification in R shiny

I am trying to use the funcion "showNotification" to display a green pop up. The official documentation says, you can use the parameter 'type' to change the color. type A string which controls the color of the notification. One of "default"…
4
votes
1 answer

How do I change the height of picker input in from shinywidget?

I use pickerInput from shinyWidget div(class = "choosechannel", pickerInput(inputId = "choosechannel", label = "business channel", width = "150px", choices = c("In-Branch", "Agency", "Affinity", "Corporate", "Credit Life"), multiple = TRUE,…
matchbox13
  • 73
  • 13
4
votes
0 answers

How to retain scroll position after change of input in Shiny

In Shiny I use a horizontal radioGroupButtons input with huge number of items. If you click on one of the items, the color of the label of the button changes. This works actually fine. However, if I click on one of the last items so that I have…
WJH
  • 539
  • 5
  • 14
3
votes
2 answers

How to add an icon or custom image to nodes in treeInput of shinyWidgets?

This gives a basic tree. How could I add for example font-awesome icons or custom flags saved in a relative file path to these nodes? library(shiny) library(shinyWidgets) df <- data.frame(continent = c(rep("Europe", 2), rep("Asia", 2)), …
Lennyy
  • 5,932
  • 2
  • 10
  • 23
3
votes
1 answer

Disable pickerInput in Shiny

I use pickerInput from shinyWidgets and I would like to disable it. For this purpose, I used the function disable form shinyjs package but it's doesn't work. But when I use selectInput it's work. This is my code…
John john
  • 437
  • 3
  • 13
3
votes
1 answer

When using selectizeGroupUI from shinyWidgets, how to limit default selection to a specified subset of data?

The below example code for selectizeGroupUI() works great for my needs. However by default when first invoking it selects and shows the entire dataset, before the user applies any filters. My problem is the dataset I'm using this for is very large…
3
votes
2 answers

sliderTextInput displays incorrect values?

I'm trying to output a certain number based on the value from sliderTextInput, but for some reason, it doesn't seem to be displaying the right value as the slider changes. My list of choices for the sliderTextInput are ("0", "1", "2", ">2"), and for…
justincj
  • 58
  • 1
  • 7
1
2 3
11 12