Skip to content

Put several ids in cleave() #1

@etiennebacher

Description

@etiennebacher

Here's an example:

library(shiny)
library(sever)

ui <- fluidPage(
  use_sever(),
  tableOutput("table"),
  plotOutput("plot"),
  uiOutput("thing")
)

server <- function(input, output){
  cleave("hey", ids = "table")
  
  output$table <- renderTable({
    error
  })
  
  output$thing <- renderUI({
    p(error)
  })
  
  output$plot <- renderPlot({
    plot(error)
  })
}

shinyApp(ui, server)

What if I want to display the same message for the table and the plot but not for the uiOutput? I tried to use c() and list() in the argument ids of cleave() but no success.

Is there a way to put a list of ids in cleave()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions