How do I implement an action button into my html? I am using the server.R and www\index.html way of creating a ui fully with html. Here is what I have right now:
<button class="btn action-button" type='button' id="submit_loc">Start</button>
in index.html, which is meant to be caught in server.R with
server <- function(input, output) {
observeEvent(input$submit_loc,
{
cat('input detected')
})
}
However, this doesn't seem to work, with nothing showing in the console when I click the button. Am I missing something?