Skip to content

Instantly share code, notes, and snippets.

@oganm
Created January 8, 2018 08:40
Show Gist options
  • Save oganm/4f6df4d4aa227bdde596c433128ec02a to your computer and use it in GitHub Desktop.
Save oganm/4f6df4d4aa227bdde596c433128ec02a to your computer and use it in GitHub Desktop.
ShinyJSLogicalConclusion
extendShinyjsEvenFurther = function(){
jscode <- '
Shiny.addCustomMessageHandler("mymessage", function(message) {
eval(message);
});
'
tags$head(tags$script(HTML(jscode)))
}
jsExecute = function(jscode,session){
session$sendCustomMessage("mymessage", jscode)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment