selectInputDT_UI: UI part of a DT select input

View source: R/selectInputDT.R

selectInputDT_UIR Documentation

UI part of a DT select input

Description

UI part of a DT select input

Usage

selectInputDT_UI(id)

Arguments

id

character(1) same one as used in selectInputDT_Server

Value

HTML

Author(s)

Jasper Schelfhout

Examples

## Only run this example in interactive R sessions
if(interactive()){
  ui <- selectInputDT_UI('id')
  data <- data.frame(id = 1:3, name = letters[1:3])
  server <- function(input,output, session){
    selected = selectInputDT_Server('id', choices = data, selected = data[1,] )
    observe({print(selected())})
  }
  shiny::shinyApp(ui, server)

}

editbl documentation built on April 3, 2025, 6:21 p.m.