我正在开发一个闪亮的应用程序,并使用
.progress
,.progess-bar
和 .progress-text
在我的 CSS 中实现了进度条,并将其修改为所需的样式。我已经接近我想要的效果,但我只需要摆脱带有 x 的灰色弹出框(请参见附图)。
我尝试了各种不同的 CSS 组合,但没有任何进展。有人知道此框的 CSS ID 吗?
示例:
UI:
ui <- shinyUI(fluidPage(
includeCSS("www/styles.css"),
plotOutput('plot', width = "300px", height = "300px"),
actionButton('goPlot', 'Go plot')
))
服务器:
server <- function(input, output) {
output$plot <- renderPlot({
input$goPlot
dat <- data.frame(x = numeric(0), y = numeric(0))
withProgress(message = 'Making plot', value = 0, {
n <- 1000
for (i in 1:n) {
dat <- rbind(dat, data.frame(x = rnorm(1), y = rnorm(1)))
incProgress(1/n, detail = paste("Doing part", i))
}
})
plot(dat$x, dat$y)
})
}
css
.progress{
position:fixed;
bottom:50px;
left:25%;
width:50%;
}
.progress-bar{
background-color:#000;
}
.progress-text{
position:fixed;
bottom:60px;
left:25%;
font-size:25px;
}