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.

shinyjs lets you perform common useful JavaScript operations in Shiny apps that will greatly improve your apps without having to know any JavaScript.

Examples include: hiding an element, disabling an input, resetting an input back to its original value, delaying code execution by a few seconds, and many more useful functions for both the end user and the developer. shinyjs can also be used to easily call your own custom JavaScript functions from R.

Useful resources:

637 questions
0
votes
0 answers

How to apply shinyjs on geomtext() to hide and show data labels

Hello I have created a shiny app which creates a scatter plot between selected variables. Then when I click on a data point the name of the point is printed in the plot. The problem is that when I update the plot with other variables the printed are…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Shiny - Selectizeinput Update

as you know an item inside the selectizeinput can just be deleted by pressing "delete", but not by clicking on it. This reduces the user experience of my dashboards dramatically. Here is a solution which deletes ALL inputs in the input fields,…
user7353167
0
votes
0 answers

Can't access input variables in R Shiny module

I'm attempting to add a module to a preexisting R Shiny app to verify users through a cookie based system. To work with cookies in R Shiny, I've followed this tutorial and I've extended shinyjs with the following javascript code: shinyjs.getcookie =…
J0HN_TIT0R
  • 323
  • 1
  • 13
0
votes
1 answer

Using Javascript to export data table as CSV in Shiny using shinyjs

I have created a Shiny app that outputs data in a data table. As the data table contains dropdown menus that are injected, the default download button of Shiny and datatable do not work (either outputs all, including all dropdown menu options, or…
dkreeft
  • 642
  • 5
  • 17
0
votes
1 answer

use rhandsontable package to edit multiple data frame on shiny

I am new to the shiny, I would like to edit different multiple data frames by radio button or selectinput by using rhandsontable package. However, my script can not show other data frame but only the first one, I don't know what is the…
Peter Chung
  • 1,010
  • 1
  • 13
  • 31
0
votes
1 answer

Selecting specific csv files based on user input in shiny web appliction

I have a drop down list of book names in which user can choose the required book title. The code for it in ui.R looks like selectInput(‘x’, label = ‘Choose the book’, choices = c(‘book1_name’, ‘book2_name’, ‘book3_name’), selected =…
0
votes
0 answers

Editable Data Table in R

I am trying to edit data table and update the records post row editing on click of action button "Update Table". How to retrive/display new Data table records reactively post modifying fields in existing Data table…
0
votes
1 answer

Resetting plotly event_data upon radio button select in shiny

I have an interactively displayed text in shiny, that captures the click event from a plotly plot. If nothing is clicked, a default text is displayed, once a point is clicked, its corresponding values are displayed. However, I also have a radio…
Bart VdW
  • 438
  • 8
  • 17
0
votes
1 answer

Show/Hide bsCollapse panels in Shiny

I am building a Shiny App using ShinyBS and Shinyjs packages, and I would like to hide/show bscollapse panels depending on the input on a radio button in another bscollapse panel. When "AAA" or "BBB" option is selected in Parent1, I want to show…
ZedzDeD
  • 21
  • 4
0
votes
1 answer

Listen to button events with Shiny.OnInputChange - R Shiny

What is the right way of listening of an event generated by a button in index.html?? In index.html: < button class='btn btn-primary btn-custom w-md waves-effect waves-light' id='.loginButton' style='width: 20%' type='button'…
Mihov
  • 305
  • 1
  • 4
  • 13
0
votes
1 answer

Enable (disable) a selectInput for a specific tabPanel in tabBox

I have a shinydashboard app build like this : I have a tabItem where I got a box (with my selectInput) and a tabBox. In the box I have my different filters and in the tabBox I have two tabPanel (tab1 and tab2). What I want is to disable the…
Mostafa90
  • 1,674
  • 1
  • 21
  • 39
0
votes
2 answers

DataTables DT: reset value of clicked cell

I wanted to add the functionality of something happening after a table cell was clicked (e.g. open a modal). Because (suppose my dt is has the ID "dt") input$dt_cell_clicked stays the same until I click a new cell, I cannot execute the same event on…
shosaco
  • 5,915
  • 1
  • 30
  • 48
0
votes
0 answers

How to send data (selected radiobutton) in R to googlesheets for every new user?

I wish to take feedback from the user asking "Did you like the song suggestion?" (Options will be "Yes" or "No"..) for every new user and send this data to googlesheets. On every new user, I want the googlesheet to get updated instead of creating…
Ela Gore
  • 1
  • 1
0
votes
1 answer

Reset inputs with reactive app in shiny

I want to add an actionbutton to reset my inputs. For example here, I want all inputs with "All name" "All gender" and "All age" ... I tried with shinyjs but unfortunately doesnt work Any help will be appreciated l <- NULL l$name <-…
Mostafa90
  • 1,674
  • 1
  • 21
  • 39
0
votes
0 answers

Shiny: Conflict with Pop Up Message and Data Table

I am creating an app with a form for users to fill in with details, and press a "Submit" button: after which a row gets added to a data frame summarising the entered data. Each entry has a unique identifier, eg. Name. If a new submission is made,…
owen88
  • 454
  • 3
  • 12