I am wondering if it is possible to "fake" a SHIFT-selection or drag-selection with pickerInput
from shinyWidgets
?
Basically in the example below I would like to select all letters from A to G with 2 mouse-clicks, by clicking on A, then with SHIFT and clicking G, all elements between get selected.
There is already a github-issue for that purpose, but I was wondering if its possible to fake it with some JavaScript?
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
pickerInput("asd", label = "How to select from-to with SHIFT:",
choices = LETTERS[1:10], multiple = TRUE)
)
server <- function(input, output, session) {}
shinyApp(ui, server)