Using index.html as UI doesn't work with eventReactive Shiny R -


i've been struggling issue in last 2 days , nothing seems work me far.

what want piece of code do: user click searchbutton, empty data frame created.

eventreactive works fine me on normal ui.r when tried use index.html doesn't work. code below:

server.r:

new_search <- eventreactive(input$searchbutton, {         search_term <<- input$searchtext test <- data.frame() }) 

index.html

<!-- search bar -->   <form class="sidebar-form">                 <div class="input-group">                   <input id="searchtext" type="text" class="form-control" placeholder="ask me anything..">                   <span class="input-group-btn">                     <button id="searchbutton" type="button" class="btn btn-flat action-button">                       <i class="fa fa-microphone"></i>                     </button>                   </span>                 </div>   </form> 

please :( thank much

edit: html template here: https://onepagelove.com/creative

i added following code header section:

<!-- shiny js --> <script src="shared/jquery.js" type="text/javascript"></script> <script src="shared/shiny.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="shared/shiny.css"/> 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -