# Week Daily Availability

## Overview

This module 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 of availabilities.

![](/files/-LcY1ZolVgqWfirpX_c2)

## Structure

* When this module is added to a page, it has a reusable element inside called `weekDailyAvailabilityGroup`.This reusable element contains all of the logic and UI for the module.
* The dates are displayed based on the variable `var - week start day` (of data type date) that you provide

## How to set up

* Open the `weekDailyAvailabilityGroup` reusable

![](/files/-Lc2voopCQmGdwuBaSRI)

* Open `Popup Hidden Variables`. This popup contains two group variables that are used in the week daily availability widget. For more information on how to use `Popup Hidden Variables`, [click here](https://docs.airdev.co/canvas/general-information/functionality/hidden-variables-popup).
  * `var - Website object` stores the app's website object. It is used in `Text PREV` and `Text NEXT` to pull the website's primary color.
  * `var - start day` stores the week's start day date&#x20;

![](/files/-LcY797Hp90kp--ex1Ak)

* \[OPTIONAL] Modify the data source of `var - start day` to include any filters you need


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.airdev.co/canvas-pages-and-modules/master-1/modules/week-daily-availability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
