Home > Mobile >  How to divide two words that appear in navigation bar tabs , in shiny app, html?
How to divide two words that appear in navigation bar tabs , in shiny app, html?

Time:01-22

I am trying to make two lines of the words that appear in each tab, in navigation bar but cannot in any way.

Here it is the pics with the words I am trying to divide in two lines.

enter image description here

And here is a snippet of a code in r script

 gene_expressions_sign_tab <- shiny::tabPanel(
      "Gene Expression",
      icon = icon("chart-line"),
      value = "Gene",
      wellPanel(
        fluidRow("etc")

CodePudding user response:

Use HTML and embed <br/> in your titles.

library(shiny)
shinyApp(
  ui = fluidPage(
    tabsetPanel(
      tabPanel(HTML("hello<br/>world")),
      tabPanel(HTML("hello<br/>again"))
    )
  ),
  server = function(input, output, session) {}
)

enter image description here

  • Related