How to use shiny javascript functions?

后端 未结 2 1699
终归单人心
终归单人心 2021-02-06 07:27

I want to send data from javascript to R using shiny js function, but is not working. What I have done is a simple example, in which setinputValue send \"noone\" to \"too\" inpu

2条回答
  •  心在旅途
    2021-02-06 08:07

    I just wanted to point out that the function being called in the answer by shosaco differs from original post which isn't that clear from the reasons why it didn't work.

    Shiny.setInputValue('too', 'noone');
    

    to

    Shiny.onInputChange("too", "noone");           
    

提交回复
热议问题