Baremetrics / calendar

Date range picker for Baremetrics
MIT License
679 stars 78 forks source link

custom date range selectors #34

Closed mlisbit closed 8 years ago

mlisbit commented 8 years ago

you can pass in a "history_options" array into your object to define custom date ranges for the dropdown menu for double dates. I modified the app.js to use my change.

kalepail commented 8 years ago

Unfortunately this implementation isn't really working and is a bit crude. It's hard to understand what round means and does and I'm running into issues if the end_date value is the last day of a current month. (i.e. October 31, 2015, seeing lots of end dates on September.. they should be October) This feature definitely needs to exist but you'll need to drop round and figure that out dynamically while also allowing for start and end dates on month start and end dates.