简体   繁体   中英

R shinydashboardplus flipbox - how to remove images

I'd like to have no images for the flipbox, how can I do it? Tried this (and also setting to NULL):

flipBox(
      id = 1, 
      main_img = "",
      header_img = "",
...

but instead it gives me this strange image. 在此处输入图像描述

I had the same problem and checked the source code of the function. If you copy it into a R script file there is the following code in line 13/14:

shiny::tags$img(class = "avatar", 
                src = main_img, 
                alt = "Avatar")

Since you cannot control this behavior by a flipBox() argument, I defined my own function flippBox and deleted the alt = "Avatar" argument. I do not see the necessity for this strange pill anyways..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM