Closed krystian8207 closed 2 years ago
The functionality allows to merge multiple input controllers into one input sent to the server.
Sample usage:
commonInputs
commonInputs(id = "val", selectInput("subval_1", ..., choices = letters, selected = "a"), sliderInput("subval_2", ..., min = 0, max = 10, value = 2) )
which send to the server:
input$val == list(subval_1 = "a", subval_2 = "2")
Extra arguments:
block
input$subval_1
commonInput
commonInput(id = "val", selectInput("subval_1", ..., choices = letters, selected = "a")), hr(), commonInput(id = "val", sliderInput("subval_2", ..., min = 0, max = 10, value = 2))
So you may mark inputs in different application places.
The functionality allows to merge multiple input controllers into one input sent to the server.
Sample usage:
commonInputs
- merge multiple inputs at oncewhich send to the server:
Extra arguments:
block
- if TRUE blocks sending sub-inputs to the server (usinginput$subval_1
will have no effect on app reactivity).commonInput
- merge each input controller separately marked with common identifierSo you may mark inputs in different application places.
Extra arguments:
block
- same as above but applied to each input sepearately.