Questions tagged [shinywidgets]

177 questions
1
vote
1 answer

shiny radioGroupButtons not rendering well in viewer

I used some of the logic from here How to put shiny radioGroupButtons into columns and can't seem to get the layout to look correctly in the viewer pane. The buttons look fine in Chrome. I'm not sure how to fix…
yake84
  • 3,004
  • 2
  • 19
  • 35
1
vote
1 answer

shinyFeedback not working with shinyWidgets' autonumericInput function

I am trying to implement feedback for users of my app using shinyFeedback. I use custom currency formatting of numeric inputs from shinyWidgets. These two do not seem to work together. Below is a reprex showing shinyFeedback working correctly with…
Jakub.Novotny
  • 2,912
  • 2
  • 6
  • 21
1
vote
1 answer

How to put shiny radioGroupButtons into columns

I'd like to align some radioGroupButtons() from shinyWidgets into 5 equally spaced columns. I'd also like the buttons to all have the same width. The column widths work a little better if I use direction = "vertical" but the columns end up even…
yake84
  • 3,004
  • 2
  • 19
  • 35
1
vote
0 answers

how to add Select All and remove all button on multiInput() shinywidgets

I am creating a dashboard where I have list of nationalities. I want to show these nationality in dual list box with select All and remove All button using multiInput() from shinyWidgets. Here is the example: Shiny Code. multiInput(label = …
1
vote
1 answer

Change materialSwitch colors in Shiny

How can I change the colors of a materialSwitch element in a Shiny app? I know that tags$style(...) can be used inside ui.R to modify CSS styles, but I don’t know the specific class names of these kind of elements.
1
vote
1 answer

Select max 2 different groups with pickerInput

I would like to restrict a pickerInput from shinyWidgets so that only elements from a maximum of 2 different groups can be selected. I know that I can restrict the selection to max 2 elements or to 2 elements per group, but I did not find a way to…
SeGa
  • 9,454
  • 3
  • 31
  • 70
1
vote
1 answer

observeEvent with updateMaterialSwitch in shiny module not updating input

I want to update my materialSwitch inside shiny module with observeEvent, event is triggered but updateMaterialSwitch doesn`t change input value. My code snippet: # app server app_server <- function(input, output, session) { r <- reactiveValues() …
Patrik
  • 77
  • 8
1
vote
1 answer

Disabling Confirm Button in confirmSweetAlert

I'm trying to disable the confirm button in confirmSweetAlert unless selectizeInput has some input within it. There seem to be solutions by using Javascript, such as swal.disableConfirmButton() and document.getElementsByClassName().disabled = true,…
m.yoshih
  • 59
  • 6
1
vote
0 answers

How to prefix money in the status bar of the R shiny widget package?

I tried to run some code, but they all convert numbers to strings, so shiny can't calculate it. Is there a way to show the numbers in the progress bar in the shinyWidgets package as money? Eg .: R$1.000.000,70/R$5.000.000,29 (In Brazil, where I…
1
vote
0 answers

Convert SliderTextInput from taking a single value to multiple

I'm building a shiny app and using a SliderTextInput for a time period selector. I'm adding another option to allow user to switch from viewing values at a point in time to change over a period. I want to use updateSliderTextInput to convert the…
Kmcd39
  • 87
  • 5
1
vote
1 answer

Select a particular item from selectInput() always when it is disabled by checkboxInput()

Let say I have below Shiny app - library(shiny) library(shinyjs) shinyApp( ui = fluidPage( useShinyjs(), checkboxInput("checkbox", label = "Choice a value", value = TRUE), selectInput("variable", "Variable:", …
Bogaso
  • 2,838
  • 3
  • 24
  • 54
1
vote
1 answer

Change position of icon in valueBox

Suppose you have a simple valueBox() from the shinydashboard package: library(shiny) library(shinydashboard) library(shinyWidgets) ui <- dashboardPage( dashboardHeader(title = "Basic dashboard"), dashboardSidebar(), dashboardBody( …
Simon
  • 991
  • 8
  • 30
1
vote
2 answers

in R, how to create multilevel radioGroupButtons, as each level depends choiceNames depend on the previous level input?

I am trying to create shinyapp in which the first radioGroupButtons will automatically update the second level of radioGroupButtons and then the 3rd level, eventually each level will filter the datatable used…
John Smith
  • 278
  • 2
  • 10
1
vote
1 answer

How to override actionbttn color in shinywidget package?

actionbttn in shinywidget package only have several option for its button color. How do I change it into other color that is not provided by default?
matchbox13
  • 73
  • 13
1
vote
1 answer

dynamic/conditional filtering in shiny select multiple inputs (selectizeInput, multiple = TRUE)

What's the right approach to have dynamic/conditional filtering in shiny inputs (selectizeInput) where multiple = TRUE? In this example I'm trying to show parent filters limited by the grandparent filter (any, all, none), and then child filters…
Eric Green
  • 7,385
  • 11
  • 56
  • 102