Skip to main content

Questions tagged [shinyjs]

shinyjs is an R package that lets you perform common useful JavaScript operations in Shiny applications without having to know any JavaScript. This is turn allows you to easily improve the user interaction and user experience in your Shiny apps. It can also be used to easily run your own custom JavaScript functions from R.

3 votes
2 answers
52 views

How to turn off scrolling for a numericInput?

Does anyone know how to turn off the slider feature of a numericInput in R Shiny?. When I run my app and am entering an input into the numeric input field, if the field is still selected and the user ...
Macy Glover's user avatar
1 vote
0 answers
39 views

How do I get the value for a color picker in R Shiny?

In my Shiny app I am trying to get the value from a color picker. Using shinyjs::onevent I can get and put the value in the input control but when I am pressing the save button (which triggers the ...
polchemon1's user avatar
0 votes
1 answer
30 views

How can I create a table with download buttons in shiny?

I have a shiny app and in this app a table that gives an overview over some items. I want to make it possible to the user to download these items by clicking on a button. My current approach works ...
Noskario's user avatar
  • 600
0 votes
0 answers
48 views

useShinyJS can't be found

when i run the the shiny app on ESS, there is no problem with useShinyJs(). However, when I run the shiny app on RStudio, it says useShinyJS() can't be found with the following error message: Warning: ...
Khanh Lê's user avatar
1 vote
1 answer
86 views

Shiny DT datatable with scrollY headers mis-aligned when width increased

In my Shiny app, I toggle the width of a DT datatable when a side panel is shown or hidden (using shinyjs addClass() and removeClass()). The table does use scrollY, which I have read can cause issues ...
Ben Ernest's user avatar
0 votes
0 answers
42 views

Open new HTML page when clicked on the dynamically generated links

In my shiny app there is an output table with gene names in one column, I have added an extra column with links to some databases for each gene name, and the links are dynamic based on the name. In ...
Meisam's user avatar
  • 631
0 votes
1 answer
31 views

shinyjs::enable not working for fileInput in shiny (R)

In my shiny app, I have the fileInput disabled after the data was loaded. I also have a conditional reset button, that lets the user start over from scratch. However, while shinyjs::disable() is ...
Anke's user avatar
  • 599
0 votes
0 answers
24 views

Storing data to dropbox with rdrop2 makes youtube-api act up?

In reference to a persistent issue after this question Hide/Show in shinyjs not working when videos are randomized was answered. Basically, I need to randomize whether one of three videos plays in a ...
sara_codes's user avatar
0 votes
1 answer
47 views

Hide/Show in shinyjs not working when videos are randomized

I want to make a Shiny app that randomly selects one of two videos and, only after the video has been played, produces a radio button asking if people have watched the video. This code works fine with ...
sara_codes's user avatar
0 votes
0 answers
16 views

stopApp() or session$close() dockerized Shiny App

So I have a Shiny app dockerized on Digital Ocean. I would like to disconnect a user after 30 minutes to keep the app running smoothly (active or inactive user doesnt matter) So I added this code to ...
H. berg's user avatar
  • 543
0 votes
1 answer
39 views

Shiny.setInputValue to open a new tab and set a value in dynamic selectInput only works after the tab has been loaded already

I am using shinyJS on a bslib page made with shiny in R to make links that are dynamically created within a DT. The link should open a different tab on the page as well as choose the value for a ...
ravivas's user avatar
  • 65
0 votes
1 answer
135 views

How to print only first page calling shinyjs code

Here RShiny print current page it is shown how to print the current page with js code: I would like to control the number of the page to be print. I want to print only the first page. Usually I do ...
TarJae's user avatar
  • 78.1k
0 votes
1 answer
27 views

How to replace isolate() with another reactivity management function that serves the same purpose in R Shiny?

The below example code has 3 linked user input matrixes: the first, base_input, allows the user to make static inputs and the next 2 user input matrixes, var_1_input and var_2_input (collectively, &...
Village.Idyot's user avatar
0 votes
2 answers
46 views

R Shiny: enabling/disabling shinyWidget using shinyjs

I have a dropdown with two date presets and one "Custom" preset. The "custom" preset should enable the user to use the date picker input to select a custom date range. If any other ...
mandmeier's user avatar
  • 399
0 votes
1 answer
45 views

Reducing width when collapsing a box

I'm trying to collapse a box not only by reducing its height (default behavior) but also its width, so that the other box gets the extra space; a bit like a collapsible sidebar. How to achieve that? ...
Kamaloka's user avatar
  • 139

15 30 50 per page
1
2 3 4 5
45