Components/Form/Calendar/CalendarPanelFooter
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/calendarpanelfooter
Calendar panel footer is an internal component that is designed to layout submit actions for a date selector. It is used as a part of the <CalendarPanel/> component.
<CalendarPanel/> to display submit actions and selected date<CalendarPanel/> only.Define labels for main actions with `primaryActionLabel` and `secondaryActionLabel` props. Both submit and discard actions are mandatory and cannot be removed.
Disable primary action interactions with `primaryActionDisabled` prop. Use it to restrict users from submitting invalid selections.
Display a selected date or a date range using `selectedDays` prop. Use it to inform users about active selection before submission.
Use calendar panel footer as a fundamental part of <CalendarPanel/> that requires user confirmation in order to submit and save a selection.
| Name | Type | Default | Description |
|---|---|---|---|
dataHook | string | — | Applies a data-hook HTML attribute that can be used in the tests. |
dateToString | (date: Date) => string | date => new Date(date).toLocaleDateString() | Formats date into a string for displaying the current selected days. Receives a Date instance. |
primaryActionDisabled | boolean | — | Specifies whether primary action is disabled. |
primaryActionLabel (required) | string | — | Defines primary (submit) action label. |
primaryActionOnClick | MouseEventHandler | — | Defines a callback function which is called every time primary button is clicked. |
secondaryActionLabel (required) | string | — | Defines secondary (cancel) action label. |
secondaryActionOnClick | MouseEventHandler | — | Defines a callback function which is called every time secondary button is clicked. |
selectedDays | string | Date | DateRangeType | — | Defines an active date or a date range selection. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
isPrimaryButtonDisabled | — |
getSelectedDaysText | — |
getPrimaryActionButtonLabel | — |
getSecondaryActionButtonLabel | — |
clickOnPrimaryButton | — |
clickOnSecondaryButton | — |
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
Last updated: 30 October 2026