【问题标题】:Logo instead of application title Shiny徽标而不是应用程序标题 Shiny
【发布时间】:2016-01-18 02:57:01
【问题描述】:
【问题讨论】:
标签:
r
user-interface
shiny
navbar
tabpanel
【解决方案1】:
这是一个老问题,但我一直在寻找解决方案,而当我尝试使用 shinyapps.io 发布我的应用程序时发现的其他问题导致了问题,这是因为我同时使用了 fluidPage 和navbarPage 其他答案中的建议。
这是我从 shinyapps.io 的支持团队收到的解决方案
#~~~~~~~~~~~~~~~~~~~~~~~ LOGAN SERVICES DASHBOARD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ui <- shiny::navbarPage(#the line of code places the logo on the left hand side before the tabs start. See image below.
title = div(img(src='LoganTogether-LOGO.jpg',
style="margin-top: -14px;
padding-right:10px;
padding-bottom:10px",
height = 60)),
#theme = "journal",
windowTitle="Logan Together: Service Map",
#MAIN TAB~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tabPanel("Interactive map", # then you go on to code the rest of your UI as normal