在下面的应用中,我想更改ActionButton
的三个方面:
这可以在闪亮的情况下完成吗?
library(shiny)
library(shinyBS)
ui <-
fluidPage(
fluidRow(
column(12,
bsCollapse(id="instructionsOutput", open="instructionsPanel",
bsCollapsePanel("instructionsPanel",
"This is a panel with text",
style="info"
)
)
),
column(12,
actionButton("p1Button", "Expand/Collapse Text")
)
),
sidebarLayout(
sidebarPanel(),
mainPanel()
)
)
server <- function(input, output, session) {
observeEvent(input$p1Button, ({
updateCollapse(session, "instructionsOutput",
open="instructionsPanel",
close="instructionsPanel")
})
)
}
shinyApp(ui, server)
答案 0 :(得分:0)
回复非常晚...但是,如果有人在寻找可能的解决方案,则可以尝试以下方法。与上面的Xiongbing Jin的答案类似,您可以将{
status: "UP",
diskSpace:
{
status: "UP",
total: 205582946304,
free: 196070014976,
threshold:10485760
}
}
和style
添加为align
shiny::column