Questions tagged [shinywidgets]

177 questions
2
votes
2 answers

How can I prevent pickerInput options in a shinydashboard sidebar menu from cutting off when the mouse moves outside the sidebar?

I've added a shinywidgets::pickerInput into my R shinydashboard sidebarMenu. When the pickerInput is open, and the cursor is hovered over it, I can see all 5 options in the pickerInput no problem. However when the cursor is moved to anywhere outside…
Cath
  • 57
  • 4
2
votes
2 answers

How to preserve the selection order of a pickerInput if multiple selections are allowed?

Let's take my code as an example. If I use selectInput option where I can pick multiple choices, the first choice that I picked would be listed first, second choice would be listed second, etc. However, if I use pickerInput option where I would pick…
Sunny League
  • 139
  • 1
  • 8
2
votes
1 answer

Change styling of shinyWidgets pickerInput

Assuming this shiny app, how to change the color of the list names a & b (aka dropdown-menus aka optgroup) library(shiny) library(shinyWidgets) shinyApp(server = function(input, output){}, ui=fluidPage( pickerInput("pick1",…
Roman
  • 17,008
  • 3
  • 36
  • 49
2
votes
1 answer

How to obtain most nested list values by name in R

I have the following dataset. data <- data.frame("group1" = c(rep("a",10),rep("b",10)),"group2" = c(rep(c("a","b"),5),rep(c("c","d"),5))) data group1 group2 1 a a 2 a b 3 a a 4 a b 5 a a 6 …
AyeTown
  • 831
  • 1
  • 5
  • 20
2
votes
1 answer

How do the `range` and `pips` arguments work in shinyWidgets `noUiSliderInput()`?

The documentation for shinyWidgets::noUiSliderInput() arguments of range and pip` simply state that they are to be a list, but do not provide any examples of the structure or content of the list. I have reviewed the refreshless.com documentation on…
jzadra
  • 4,012
  • 2
  • 26
  • 46
2
votes
1 answer

Strange behaviour in noUiSliderInput() when formating decimal to integer e.g. 5.00 to 5

In noUiSliderInput() the numbers are shown as decimal by default like: 5.00 To change to integer like: 5 we can use the argument format: format = list(wNumbFormat(decimals = 0, thousand = ",", prefix = "$")) This only works partially like…
TarJae
  • 72,363
  • 6
  • 19
  • 66
2
votes
1 answer

How to get arrow on the right side to the left in shinyWidgets pickerInput?

How can i get the arrow that opens the dropdown-menu from the right side to the left in shinyWidgets::pickerInput? library(shiny) library(shinyWidgets) ui <- fluidPage( pickerInput( inputId = "name", label = "Choose option", …
Philipp Schulz
  • 131
  • 1
  • 8
2
votes
1 answer

Change color of Slider Text Input Widget in Shiny R?

Is there a way to change the color of the following slide of the CRAN package shinyWidgets? Thanks in advance. I need to do it also in within the update function. library("shiny") library("shinyWidgets") ui <- fluidPage( br(), sliderTextInput( …
RRuiz
  • 2,159
  • 21
  • 32
2
votes
0 answers

Limit number of selections to one in each field in shinyWidgets::selectizeGroupUI

I have 4 dependent selection fields realized with selectizeGroup functions. I would like to limit the number of choices to only one item in each field. Is it possible? The code below works like a charm for multiple selections in each field. I would…
Jacek Kotowski
  • 620
  • 16
  • 49
2
votes
1 answer

How to write more than 1 line of text delimited by \n using show_alert()?

I have recently found that there is a possibility to display sweet alerts in shiny using the package shinyWidgets. I am trying to put more than 1 line of text delimited by \n in the function show_alert() but I cannot find any way to get this. This…
emr2
  • 1,436
  • 7
  • 23
2
votes
1 answer

R Shiny- How can I set a default selection using shinyWidgets selectizeGroupUI?

I am using selectizeGroupUI to create dynamic filters in Shiny. The problem is I cannot set a default selection of the output and right now my app is selecting everything from both existing filters. That does not work for me because the real table…
AFS
  • 93
  • 1
  • 5
2
votes
1 answer

Formatting all labels in R Shiny / CSS tags

I am trying to reformat all labels in my Shiny app. In doing so, I wanted to fall back on the tags and used the following solution: tags$head(tags$style( HTML( "label {font-weight: italic; font-family:Times New Roman; margin-bottom:20px;}" …
Alex_
  • 189
  • 8
2
votes
1 answer

Change sliderbar color with setSliderColor within reactive output

I'm building a shiny app that has a reactive slider that I want the bar color to be red. I'm trying to use the setSliderColor() function from the shinyWidgets package, but it's not working. My assumption is that it isn't picking up on the sliderId…
J.Sabree
  • 2,280
  • 19
  • 48
2
votes
1 answer

Display pickerInput() title when values are selected by default

I would like to know how I could set the title of a pickerInput() to be displayed -"Please select a month"- when values are selected by default. library(shiny) library(shinyWidgets) ui <- fluidPage( pickerInput( inputId = "month", label =…
firmo23
  • 7,490
  • 2
  • 38
  • 114
2
votes
1 answer

updatePickerInput after updateTabItem call in modularized R Shiny App

Goal: I would like to select a row in the DT Table, switch tabs, and have the pickerInput value update to the value in the table's row. Issue: I am able to switch tabs just fine (thanks to another post's advice on using the parent session); however,…
1
2
3
11 12