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
I want to replace the image in dashboardBrand with a local logo picture, but it doesn't seem to work. I'm sure that there is no problem with the relative path between the picture and app.R. Could you please tell me how to use local png pictures in dashboardBrand? header = dashboardHeader( title = dashboardBrand( title = "bs4Dash", color = "primary", href = "https://www.google.fr", image = "./images/logo.png" ), skin = "light", status = "white", border = TRUE, sidebarIcon = icon("bars"), controlbarIcon = icon("th"), fixed = FALSE, leftUi = tagList( dropdownMenu( badgeStatus = "info", type = "notifications", notificationItem( inputId = "triggerAction2", text = "Error!", status = "danger" ) ), dropdownMenu( badgeStatus = "info", type = "tasks", taskItem( inputId = "triggerAction3", text = "My progress", color = "orange", value = 10 ) ) ), rightUi = dropdownMenu( badgeStatus = "danger", type = "messages", messageItem( inputId = "triggerAction1", message = "message 1", from = "Divad Nojnarg", image = "https://adminlte.io/themes/v3/dist/img/user3-128x128.jpg", time = "today", color = "lime" ) ) )
The text was updated successfully, but these errors were encountered:
That's probably because the image you point to isn't available on the server for the Shiny app. You have to tell shiny about this, for instance you can use shiny::addResourcePath("assets/images", "<PATH_TO_IMAGES>") to tell shiny to serve the PATH_TO_IMAGES folder at assets/images. Then you can use assets/images to point to different images in you Shiny app code:
I want to replace the image in dashboardBrand with a local logo picture, but it doesn't seem to work. I'm sure that there is no problem with the relative path between the picture and app.R. Could you please tell me how to use local png pictures in dashboardBrand?
header = dashboardHeader( title = dashboardBrand( title = "bs4Dash", color = "primary", href = "https://www.google.fr", image = "./images/logo.png" ), skin = "light", status = "white", border = TRUE, sidebarIcon = icon("bars"), controlbarIcon = icon("th"), fixed = FALSE, leftUi = tagList( dropdownMenu( badgeStatus = "info", type = "notifications", notificationItem( inputId = "triggerAction2", text = "Error!", status = "danger" ) ), dropdownMenu( badgeStatus = "info", type = "tasks", taskItem( inputId = "triggerAction3", text = "My progress", color = "orange", value = 10 ) ) ), rightUi = dropdownMenu( badgeStatus = "danger", type = "messages", messageItem( inputId = "triggerAction1", message = "message 1", from = "Divad Nojnarg", image = "https://adminlte.io/themes/v3/dist/img/user3-128x128.jpg", time = "today", color = "lime" ) ) )
The text was updated successfully, but these errors were encountered: