Calendar Grid Pro: Calendar Generator, Date Picker, Date Range Picker Like Airbnb, GRUPZ.com | Now at Version 1.6.1 - Fixes a Safari Compatibility Issue, minor bugfix

NEW (non-breaking) version 1.9.2 available!

FYI, I released a small but cool update for Calendar Grid Pro last night. In another thread, user @petter described needing a way to create a list of date ranges, based on a list of starting date and adding some amount of time to create the corresponding ending dates for the ranges.

While this is something that one could do with scripting (in Run JavaScript or List Expression), it’s something that can be made much easier in a plugin.

So, I created a new Utility Action (which will be available in the next major update to CG Pro) that can create such a list (either from matching lists of starts and ends or algorithmically by a start/end point plus some unit of time).

The new Action won’t be available until the next major update to CG Pro, so I built an element version of this plugin. If you update to CG Pro plugin to version 1.9.2, you’ll find it has a new plugin element called “Date Range Builder”. Drop it on your page and read the docs. It think it does exactly what you need to do.

Note that, as it is its own element plugin, it’s a bit different from the “Utility” functions currently built into CG Pro. No need to call it with an action… It’s output will will update whenever its inputs change. So you can do stuff like this:

Date Range Builder fields:

And then, as you advance the calendar, you’ll note that the output changes automatically (and of course, it’s fast)… Run mode:

Note: Date Range Builder is designed to work on the same page as a CG Pro element… However, you can use it by itself. If it detects that moment is not loaded (it only needs the simplest version of moment as it does not need locales or moment-timezone or moment-range), it adds moment to the page automagically.

I’m interested to know if CG Pro users would be interested in more elements like this – which give access to various utility functions without having to have CG Pro itself on the page…

Have a play around with this new element and do share your thoughts!

Regards,
Keith

2 Likes