Releases: Baremetrics/calendar
v1.0.14 – "McClickens"
v1.0.13 – "😬 edgy"
- Microsoft Edge compatibility updates
v1.0.12 – "Now you click me"
- Mostly just a few key PR inclusions.
- Few small tweaks and minor bug fixes.
v1.0.11 – "Paranoia Activity"
- Third party library updates
- Typos and code formatting. Because I'm paranoid
v1.0.10 – "The Fam Jam"
- Better iOS support. The date inputs are no longer editable. Having a keyboard popup for editing dates was a lot slower then just tapping stuff. So we cut it. Thanks azaytsev-csr!
- Minor tweaks and outlier bug fixes Thanks Paul Ryan!
- More consistent moment usage. Cleaned up the code base quite a bit. Thanks Theodore Brown!
- Fire callback on single calendar when value is deleted
v1.0.9 – "Bdring Bdring"
- Don't automatically include the "This month" preset in with custom presets (sorry guys)
- If required is set to
false
for a date range but you've included acurrent_date
value the input will pre-fill with that date rather then defaulting to the placeholder
v1.0.8 – "All About The Base"
- Pulled in a couple pull requests to fix some locale issues
- Couple small bug fixes and performance improvements
v1.0.7 – "The Splits"
Originally the compiled CSS file had both my demo app CSS and the calendar CSS all mashed together. Apparently some folks found that to be annoying. (Hint: It was me) This is no longer the case.
v1.0.6 – "#bling4dayz"
1.0.6 Update
Custom presets!!
-
presets
[boolean] or [object]
- If you don't want to show the preset link just set this to
false
otherwise the default is true which will just give you a basic preset of.. yep.. presets. BOOM! - Otherwise, if you want to customize it up you can include an array of preset objects. Something like:
presets: [{ label: 'Last month', start: moment().subtract(1, 'month').startOf('month'), end: moment().subtract(1, 'month').endOf('month') },{ label: 'Last year', start: moment().subtract(12, 'months').startOf('month'), end: moment().subtract(1, 'month').endOf('month') }]
- If you don't want to show the preset link just set this to
We also added custom formatting for the placeholder text on the single date picker if the date is not required.
- placeholder
[string]
- Set placeholder text (note this will only apply if the required key is set to
false
)
- Set placeholder text (note this will only apply if the required key is set to
Last but not least we also added support for locale based first day of the week.
v1.0.5 – "Required"
Version 1.0.5 sees two major improvements.
The first is you can now add a required
key for the single date picker if you'd like to break the default and generate a picker with a placeholder rather then a pre-dated input.
new Calendar({
element: $('.daterange--single'),
current_date: 'June 15, 2015',
format: {input: 'M/D/YYYY'},
required: false
});
Note the input format will be the placeholder. Cool huh?
The second is that finally the picker's callback function will only fire if the dates have actually changed. Before the function would fire regardless of what dates were chosen. So dumb. We're smarter now.