Css 使用removeUI卸下井面板
我正在尝试使用我闪亮的应用程序中的removeUI()删除整个wellpanel。我不确定用什么作为选择器。在这方面,有人能帮我吗?如果你创建了用户界面,然后在浏览器中打开一个闪亮的应用程序,并使用inspect element你可以看到Css 使用removeUI卸下井面板,css,r,shiny,Css,R,Shiny,我正在尝试使用我闪亮的应用程序中的removeUI()删除整个wellpanel。我不确定用什么作为选择器。在这方面,有人能帮我吗?如果你创建了用户界面,然后在浏览器中打开一个闪亮的应用程序,并使用inspect element你可以看到wellPanel有一个class=well 因此,一种可能性是指定类选择器,如.class\u name。在您的情况下是:selector=“.well” 这是一个最小的闪亮应用程序,它使用类 library(shiny) ui <- fluidPa
wellPanel
有一个class=well
因此,一种可能性是指定类
选择器,如.class\u name
。在您的情况下是:selector=“.well”
这是一个最小的闪亮应用程序,它使用类
library(shiny)
ui <- fluidPage(
wellPanel(
"This is going to be removed",
plotOutput("plot")
),
actionButton("btn", "Remove wellPanel")
)
server <- function(input, output, session) {
output$plot <- renderPlot(plot(iris))
observeEvent(input$btn, {
removeUI(selector = ".well")
})
}
shinyApp(ui, server)
库(闪亮)
ui如果您创建了ui,然后在浏览器中打开一个闪亮的应用程序,并使用inspect element可以看到wellPanel
有一个class=well
因此,一种可能性是指定类
选择器,如.class\u name
。在您的情况下是:selector=“.well”
这是一个最小的闪亮应用程序,它使用类
library(shiny)
ui <- fluidPage(
wellPanel(
"This is going to be removed",
plotOutput("plot")
),
actionButton("btn", "Remove wellPanel")
)
server <- function(input, output, session) {
output$plot <- renderPlot(plot(iris))
observeEvent(input$btn, {
removeUI(selector = ".well")
})
}
shinyApp(ui, server)
库(闪亮)
你能不能在你的问题上多做点工作,我们可以帮你?你试过什么?看,你能不能在你的问题上做点工作,这样我们就可以帮助你了?你试过什么?看见