vanilla-datetimerange-picker
vanilla-datetimerange-picker copied to clipboard
A JavaScript component that is a date & time range picker, no need to build, no dependencies except Moment.js, that is based on Dan Grossman's bootstrap-daterangepicker.
So far, when I arrive on my page, I always have a date range selected. I want it to be optional, how can I clear the initial value (or set...
Instead of ``` window.addEventListener('apply.daterangepicker', function (ev) { console.log(ev.detail.startDate.format('YYYY-MM-DD')); console.log(ev.detail.endDate.format('YYYY-MM-DD')); }); ``` We should be able to write: ``` new DateRangePicker(element...) element.addEventListener('apply.daterangepicker', function (ev) { console.log(ev.detail.startDate.format('YYYY-MM-DD')); console.log(ev.detail.endDate.format('YYYY-MM-DD')); }); ```
Why Day.js? 2kB Less JavaScript to download, parse and execute, leaving more time for your code. Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and...
Hi, i would like to reproduce this example http://www.daterangepicker.com/#example5 Is it possible with your lib? When i set `autoUpdateInput: false` my input field always remains empty no matter what selection...
Currently, selecting a range for the date picker applies the range and then closes the date picker automatically. It might be nice instead to see the range confirmed first, then...
I am trying to update an attribute attached to the element triggering the DateRangePicker. e.g. I am trying to update the attribute(s) within the callback function function (start, end) {...
I asked Dan Grossman also about it. I have a similar use for the date range picker, but a bit more advanced. I would like to preset all vacation and...
Hello. Is it possible to make some dates not available?
Hi, Is there anyway to use placeholder text? Currently, the value is replacing my placeholder.