I am trying to build a shiny application where I am trying to build a functionality similar to below screenshot:-
I have build something similar using Shinyjqui/sortable but I want to allow multi select prior to moving the items. Please let me know if anyone has built/worked on something similar?
Below is an example that I have created using "shinyjqui" package:-
library(shiny)
library(shinyjqui)
attach(mtcars)
ui <- fluidPage(
fluidRow(
column(
width = 12,
uiOutput("OrderInputRender")
)
)
)
server<- function(input,output){
output$OrderInputRender <- renderUI({
fluidRow(
column(width = 6,
orderInput(
"All_Columns",
width = "100%",
label = "Available columns",
items = colnames(mtcars),
style="margin:5px 0 0 0%; overflow: auto; background-color:#DCDCDC; border: 0px solid; padding: 10px; padding: 10px; height:360px;",
connect = c("Segment_Column","Channel_Column")##which dropboxes can interact
)## close of order input
),
column(width = 6,
orderInput(
"Channel_Column",
width = "100%",
label = "Selected Columns",
items = NULL,
style="margin:5px 0 0 0%; overflow: auto; background-color:#DCDCDC; border: 0px solid; padding: 10px; padding: 10px; height:360px;",
connect = c("All_Columns","Segment_Column")##which dropboxes can interact
)## close of order input
)
)
})
}
shinyApp(ui, server)