DreamHunter
DreamHunter

Reputation: 75

R shiny break line in button label

Please see the following toy example. Any help would be greatly appreciated! Thanks!

shinyApp(
ui = fluidPage(
    actionButton("btnId", "I want a line break here <br/> since the label is too long")),
server = function(input, output){})

Upvotes: 6

Views: 4655

Answers (1)

SBista
SBista

Reputation: 7694

You could use HTML function like this:

library(shiny)

    shinyApp(
      ui = fluidPage(
        actionButton("btnId", HTML("I want a line break here <br/> since the label is too long"))),
      server = function(input, output){})

Upvotes: 18

Related Questions