You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am learning golem and in the process I try to convert an old app into golem framework & shiny modules.
While doing so I have some issues with shinyjs javascript. The existing app using shinyjs to pass some data from R server code like this
js$st_updateData(data= toJSON(data))
and the javascript declaration is like this:
// update data for the pageshinyjs.st_updateData=function(input){st_data=input.data;}
If I using this with golem - golem will load the script and throw an error like this
It would not affect and the shinyjs still work just fine. I just curious if I can specificly tell golem to not load some javascript in the resource directory and use other mean to do that, in this case is shinyjs:extendShinyjs(...)
I understand that I can rewrite the shinyjs as follow:
R Server code
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am learning golem and in the process I try to convert an old app into golem framework & shiny modules.
While doing so I have some issues with shinyjs javascript. The existing app using shinyjs to pass some data from R server code like this
and the javascript declaration is like this:
If I using this with golem - golem will load the script and throw an error like this
It would not affect and the shinyjs still work just fine. I just curious if I can specificly tell golem to not load some javascript in the resource directory and use other mean to do that, in this case is
shinyjs:extendShinyjs(...)
I understand that I can rewrite the shinyjs as follow:
R Server code
Javascript
Thank you for a great package - I really love and want to learn more and apply golem in coming projects.
Beta Was this translation helpful? Give feedback.
All reactions