Created
January 8, 2018 08:40
-
-
Save oganm/4f6df4d4aa227bdde596c433128ec02a to your computer and use it in GitHub Desktop.
ShinyJSLogicalConclusion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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