shinyUI(navbarPage("Capacity Forecasting System",
tabPanel("Capacity",style="height:1000px;",
tags$head((
tags$link(rel = "stylesheet", type = "text/css", href = "theme.css")
)),
# Loading message
div(
id = "loading-content",
h1("Loading...")
),
fluidRow(style="width:1900px;",
plotOutput("graph")
),
....
I am using the navbarPage layout and I would like to have my first tab covered while it loads. Right now I have a screen covering the tab (although some of my charts have been moved), but the screen isn't hiding.
In my server.R:
library(shinyjs)
shinyServer(function(input, output, session) {
hide(id = "loading-content", anim = TRUE, animType = "fade")
And my css:
#loading-content {
font-family: 'Lobster', cursive;
background: #000000;
position: absolute;
opacity: 1;
z-index: 100;
left: 0;
right: 0;
height: 100%;
width: 100%;
text-align: center;
color: #FFFFFF;
}
Thank you for your feedback, hopefully you can help me once again.