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
1 answer

Integrate Tableau into Shiny project with Javascript API

I'm trying to put a Graph in a Shiny project I'm working on. I found that the most convenient way to do so is to use the Javascript API and the shinyjs package. The Javascript API for Tableau is explained in detail here and my script looks like…
0
votes
1 answer

Not able to style data table in R Shiny

I am trying to style ELISA data (numeric) table as described here and I get the following error for the code brks <- quantile(df, probs = seq(.05, .95, .05), na.rm = TRUE) I used the following code as described in the web page. Can someone…
RanonKahn
  • 853
  • 10
  • 34
0
votes
1 answer

How to get rid of total row and total column in rpivot table

This is just an example code. I want to remove last row and last column with name "Total" in pivot table. Your help will be appreciated. Thank you. library(devtools) install_github("ramnathv/htmlwidgets")…
Sadaf Naz
  • 31
  • 1
  • 4
0
votes
1 answer

using click.dt with sliders to filter after a click not updating

Please run this code. You will see when you click on a row in the datatable the number from the "a" column is plotted. That's done using callback and observeEvent. That works fine. library(shiny) library(DT) runApp(shinyApp( ui = fluidPage( …
user3022875
  • 8,598
  • 26
  • 103
  • 167
0
votes
0 answers

Reset Shiny widgets with Shinyjs and googlesheets

My app takes user input and stores it in google sheets.I'd like to have an action button that resets all sidebar-panel ui inputs when button is clicked. I gave it a try with shinyjs just like this post but I get the grey screen every time I press…
W148SMH
  • 152
  • 1
  • 11
0
votes
3 answers

shiny: different tasks with actionButton for each menuSubItems

I have create an app using shinydashboard with a group of menuItems and menuSubItems as well as the coresponding tabItems, and there is a conditionalPanel with different input parameters for each menuSubItems, and an actionButton for different…
earclimate
  • 375
  • 1
  • 14
0
votes
0 answers

using shinyjs onclick and toggle function on a menuSubItem not work

I have create a box in the UI for passing parameters to the server before run a task(after a runButton is clicked the box should be hidden or collapsed, i have done it through js collapse function), and when the a menuSubItem is clicked, the box…
earclimate
  • 375
  • 1
  • 14
0
votes
1 answer

R - Disabled action button conditional to column's name

Below a simplified version of my shiny app. I looked through some of the examples in the shinyjs package and I did not find anything that could help me. I want to disable the Submit button if one of the data frame uploaded (in my real example) or…
MLavoie
  • 9,671
  • 41
  • 36
  • 56
0
votes
1 answer

shiny using selectizeInput to build dynamic data output

The inputs are displayed in "iris$Petal.Width - iris$Species" format.Upon selected inputs, data to be split and iris$Petal.Width alone to be used to filter entire data. Example: selected values are as in the image. Try to get data like…
SPS
  • 127
  • 1
  • 2
  • 7
0
votes
1 answer

Shiny: How to reset rhandson table to default?

I have a small app like this: require(shiny) require(shinyjs) require(rhandsontable) shinyApp(ui = fluidPage(useShinyjs(), div(id = 'div1', titlePanel("RHOT - Form"), …
jackStinger
  • 2,035
  • 5
  • 23
  • 36
0
votes
1 answer

How to pass a R vector to shinyjs as a JS array?

I would like to pass a vector to extendshinyjs as a JS array, but it seems that the vector is actually passed as a string. Here is my code: ui.R shinyUI( fluidPage( useShinyjs(), extendShinyjs(text = jsCode), tags$div('color names', …
Dambo
  • 3,318
  • 5
  • 30
  • 79
0
votes
1 answer

Hide/show results with submit button in Shiny with shinyjs

I'm trying to create a Shiny app that includes a submit button for inputs and a checkbox for hiding/showing the results. My issue is that ticking or unticking the hide/show checkbox has no effect unless I hit the submit button again. How can I show…
carozimm
  • 109
  • 7
0
votes
1 answer

How to remove a title from a tab in Shiny that gets carried on different pages?

I'm building a form in Shiny. I'm using tabs to put information in different pages. In the code here, I'm having 3 main pages: 1. the main form to fill, 2. the "help" page 3. and the "thanks for submitting!". The only thing is that when I submit…
M. Beausoleil
  • 3,141
  • 6
  • 29
  • 61
0
votes
1 answer

hide and show widget in R Shiny

I am trying to hide and show button based on folder selection.Scenario is if the user selects the folder then Button is shown or else button should be hidden. I and trying to achieve the same using shinyjs package. Here is the piece of code which I…
string
  • 787
  • 10
  • 39
0
votes
2 answers

toggle across tabs in shinyjs

im trying to invoke js across different tabs in shiny like the code below library(shiny) library(shinyjs) ui <- tagList( useShinyjs(), navbarPage( "shinyjs with navbarPage", tabPanel("tab1", actionLink(inputId = 'link',label =…
yonicd
  • 498
  • 1
  • 4
  • 15