r - Remove line break in textOutput in Shiny Dashboard notification -


i created notification within shiny dashboard displays icon , number of users registered in last day. if put in dummy text, icon , text aligned on same 'row'. if use rendertext pull number dynamically, line break added after icon.

line break in notification

here's ui code:

dropdownmenu(type = "notifications",          notificationitem(text = textoutput("regis")",            icon("users")) 

here's server code:

output$regis <- rendertext({   count <- registrationstoday()   paste(count,"new registrations today.",sep=" ")   }) 

i've tried fix can't figure out. ideas?

an interim solution problem posted here: https://github.com/rstudio/shinydashboard/issues/21

i tested , worked.

notificationitem( text = tags$div(textoutput("regis"),style = "display: inline-block; vertical-align: middle;"), icon("users") )

hope helps!


Popular posts from this blog