outwatch / outwatch-libs

OutWatch Helpers for javascript libariers
Apache License 2.0
5 stars 1 forks source link

dateFormat #1

Closed elyphas closed 4 years ago

elyphas commented 4 years ago

What would be the way to pass a dateFormat parameter?

cornerman commented 4 years ago

Fixed with 7429a0b0fad32953cab2d9d0745d9e3c814a342c

I have added a format option to the flatpickr method: flatpickr(..., format = Some(formatString)) and added another method to provide the full FlatpickrOptions object in case you want to configure more: flatpickrWithOptions(..., options).

elyphas commented 4 years ago

Thank you

cornerman commented 4 years ago

@elyphas Currently, the selected date value is only emitted when the picker is closed. if you want this whenever it changes, we can discuss how to change the interface. let me know!

elyphas commented 4 years ago

Ok thank you.