I can't generate a popup message with my code. Here is a snippet of the code:
# server.R
library(shiny)
shinyServer(function(input, output, session) {
observeEvent(input$btn_enter, {
session$sendCustomMessage(type = 'testmessage', message = 'You clicked the button!')
})
})
# ui.R
library(shiny)
shinyUI(fluidPage(
actionButton(
"btn_enter",
"Enter"
)
))
It is probably a trivial thing, but what am I missing?