You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've added some HTML texts to the left sidebar and I would like the text to disappear when the sidebar is collapsed (otherwise it doesn't show properly). Is there a way to do that?
See the information section in the sidebar below.
The text was updated successfully, but these errors were encountered:
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
library(shinyjs)
shinyApp(
ui= dashboardPage(
header= dashboardHeader(),
sidebar= dashboardSidebar(
id="sidebar",
p("hello this is some text that just serves as a reprex", id="info")
),
body= dashboardBody(
useShinyjs()
)
),
server=function(input, output, session) {
observeEvent(input$sidebar, {
toggle("info")
})
}
)
Hi, I've added some HTML texts to the left sidebar and I would like the text to disappear when the sidebar is collapsed (otherwise it doesn't show properly). Is there a way to do that?
See the information section in the sidebar below.
The text was updated successfully, but these errors were encountered: