Open aronatkins opened 9 years ago
I think it would be better to implement the time feature separately. Date/time manipulations are kind of complex with all the formatting, especially if you get into ordering, right?
@VermillionAzure My suggestion is that Shiny implement something like the Bootstrap date-time pickers at https://eonasdan.github.io/bootstrap-datetimepicker/ or https://tarruda.github.io/bootstrap-datetimepicker/
This could be done as a separate package, but feels close enough to the other input controls that are already part of Shiny itself.
@aronatkins @VermillionAzure I just wrote the shinyTime package which adds a timeInput
control (just time, not datetime). Please let me know what you think!
(Wait for the 0.2.0 release to hit CRAN though (should be there in a day), there is a small usability bug in 0.1.0 with keyboard input)
shinyTime::timeInput looks so good,however,hope to integrate into a more user-friendly UI
It is better to have a Date Range Picker With Times input. Something like http://www.daterangepicker.com/#example2
airDatetimePicker
from the great https://github.com/dreamRs/shinyWidgets package provides a date-time range picker but still has some minor flaws as documented in https://github.com/dreamRs/shinyWidgets/issues/299
The
dateInput
control is quite nice for choosing single date values but does not support more granular time selection (thinkSys.Date()
vs.Sys.time()
).I am aware that there are a number of examples which pull in date-time pickers into a Shiny application, but it would be great if Shiny could provide this without independent augmentation.