This block shows the availability of each day of one week at a time and allows the user to toggle left and right between weeks. Ideal for booking / Airbnb-type applications where you need to show a calendar for availabilities.
When this block is added to a page, it has a reusable element inside called weeklyavailability.This reusable element contains all of the logic and UI for the block.
The dates are displayed based on the variable var - week start day (of data type date) in Popup Hidden Variables
When the page is first loaded, the Current date/time is passed to var - week start day
Clicking on Group Main previous and Group Main next would pass a different start day (minus or plus 7 days to Current date/time) to var - week start day