在shiny中,使用dashboard plus,如何控制widget样式?

问题描述 投票:0回答:1

目前我在使用Shiny dashboardplus,有谁知道如何控制这个wedget的不透明度,高度和宽度?

widgetUserBox(title = "Glara Johanthen",
                shiny::actionButton(inputId='Name', label="Click here"),
                type = 2, src = "https://adminlte.io/themes/AdminLTE/dist/img/user7-128x128.jpg", color = "green")
r shinydashboard
1个回答
0
投票

要控制不透明度和其他css,添加以下内容到你的dashboardBody中。

  tags$style(".widget-user-header.bg-green { opacity: 0.5 !important; }"), 

或小组件的其他部分,如果你想控制头以外的不透明度,在上面这个例子中。

© www.soinside.com 2019 - 2024. All rights reserved.