简体   繁体   English

在闪亮的仪表板页面中的浏览器选项卡中的标题

[英]title in tab of browser empty in shiny dashboard page

Though there is the posibility to add a title in a shiny dashboard app, which appears correctly in the app page, 虽然可以在闪亮的仪表板应用程序中添加标题,但在应用程序页面中可以正确显示,

## app.R ##
library(shiny)
library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(title = "my title"),
  dashboardSidebar(),
  dashboardBody()
)

server <- function(input, output) { }

shinyApp(ui, server)

It does not appear as the name of tab of the browser. 它不会显示为浏览器选项卡的名称。 As name of tab in browser only appears the URL (like 127...) In fact the generated html has the <title></title> string in the first lines, so I could not put one HTML title string manually before it (only after, which does not work). 由于浏览器中选项卡的名称只显示URL(如127 ...)实际上生成的html在第一行中有<title></title>字符串,因此我无法在其前面手动放置一个HTML标题字符串(之后,哪个不起作用)。

You can set the browser page title like this 您可以像这样设置浏览器页面标题

ui <- dashboardPage(title="Browser title",
  dashboardHeader(title = "Basic dashboard"),
  dashboardSidebar(),
  ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM