JuliaPluto / PlutoUI.jl

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

Adding `DatePicker` #182

Closed icweaver closed 2 years ago

icweaver commented 2 years ago

Follow-up from #179

Closes #169 after #181 merged

github-actions[bot] commented 2 years ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/icweaver/PlutoUI.jl", rev="date_picker")
julia> using PlutoUI

Or run this code in your browser: Run with binder

fonsp commented 2 years ago

It looks like Pluto already converts to a Julia DateTime (nice!), can you use Bonds.transform_value to then convert it to a Date, dropping the time?

icweaver commented 2 years ago

Ok, things should be up now! It looks like date validation is already automatic (sweet), but do we want to add extra features like min/max dates as well?

fonsp commented 2 years ago

Awesome!!!!

fonsp commented 2 years ago