New inputs for Shiny apps
devtools::install_github("xari/shinieR")
Each input requires an inputId
, and also accepts optional value
and configuration
arguments.
This input is a binding for react-time-picker
.
All props for the React component may be given as items to the configuration
list, as shown below.
timeInput(
"timeInput",
configuration = list(
disableClock = TRUE,
format = "HH:mm",
hourPlaceholder = "HH",
minutePlaceholder = "MM"
)
)
This is a binding for react-toggle
.
Like timeInput()
, all original props can be passed to the component via the configuration
list.
switchInput("switchInput",
c("Yes", "No"))