在R中更改Shinyjs警报的标题

问题描述

我正在构建一个R闪亮的应用程序,并且正在使用shinyjs::alert函数来使用户知道提交成功的时间。弹出窗口的默认标头是127 IP地址。可以将其更改为不同文本的字符串吗?理想情况下,将使用我的组织名称代替。

shinyjs::alert文档中进行了少量编辑,即可清除下面的代码,以创建一个按钮来发送消息“ Hello World!”。作为弹出窗口。

enter image description here

if (interactive()) {
  library(shiny)
  library(shinyjs)
  shinyApp(
    ui = fluidPage(
      useShinyjs(),# Set up shinyjs
      actionButton("btn","Click me")
    ),server = function(input,output) {
      observeEvent(input$btn,{
        # Change the following line for more examples
        alert("Hello world!")
      })
    }
  )
}

编辑: 在Microsoft Edge上的Windows操作系统上运行时,默认消息显示为

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)