JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

Feature request: Date range picker #255

Open swt30 opened 1 year ago

swt30 commented 1 year ago

I posted on Slack that I'd love a date range picker. I enjoy using Pluto to build quick little dashboards to help me with data exploration, and quite often I'll interactively construct some SQL query covering a range of dates. At present I need to use two individual date pickers for the start and end.

I think the input element doesn't support a date range, so I assume it's a harder than just adding a bare <input type=... > like in https://github.com/JuliaPluto/PlutoUI.jl/pull/182. So consider this a little feature request :)

I'll tackle a PR myself if I have time, but I know very little HTML/JS, so it will require some pre-reading of how the other widgets work first.

fonsp commented 1 year ago

Hey @swt30 ! Happy to hear from you!

You could try making this with PlutoUI.combine and #176, similar to how ScrubbableMatrix was implemented using Scrubbable. That means no javascript!