is there any way to align title headings of apps?

I think that titlePanel is not thought to work together with navbarPage. In the navbarPage, you can use the native title argument:

library(shiny)


# Define UI for application
ui <- fluidPage(
  
  navbarPage(title = "My Jupyter Notes",
             
             tabPanel(title = "Introduction"),
             
             tabPanel(title = "My Notes", 
                      
                      mainPanel(
                        tabsetPanel(
                          type = "tabs",
                          tabPanel("Week 1"),
                          tabPanel("Week 2"),
                          tabPanel("Week 3")
                        )
                      )
             )
  )
)


# Define server logic
server <- function(input, output) {
}

# Run the application 
shinyApp(ui = ui, server = server)

enter image description here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top