Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 使用removeUI卸下井面板_Css_R_Shiny - Fatal编程技术网

Css 使用removeUI卸下井面板

Css 使用removeUI卸下井面板,css,r,shiny,Css,R,Shiny,我正在尝试使用我闪亮的应用程序中的removeUI()删除整个wellpanel。我不确定用什么作为选择器。在这方面,有人能帮我吗?如果你创建了用户界面,然后在浏览器中打开一个闪亮的应用程序,并使用inspect element你可以看到wellPanel有一个class=well 因此,一种可能性是指定类选择器,如.class\u name。在您的情况下是:selector=“.well” 这是一个最小的闪亮应用程序,它使用类 library(shiny) ui <- fluidPa

我正在尝试使用我闪亮的应用程序中的removeUI()删除整个wellpanel。我不确定用什么作为选择器。在这方面,有人能帮我吗?

如果你创建了用户界面,然后在浏览器中打开一个闪亮的应用程序,并使用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)
库(闪亮)

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)
库(闪亮)

你能不能在你的问题上多做点工作,我们可以帮你?你试过什么?看,你能不能在你的问题上做点工作,这样我们就可以帮助你了?你试过什么?看见