top of page

Calendar Element

Calendar element enables developer to display availability or select dates as a calendar view. It's designed to enhance date selection experiences with customizable options.

Demo

Monday

Tuesday

Wednesday

Thursday

FriDay

Saturday

Sunday

April - 2025

Code Enhancement Studio | version: 7.31

Features

Feature descriptions

Installation

You can install the app via the site selector or via the Wix App Market.

The app offers a trial period that is free to install

Settings

Parameters

Parameters are managed via the collection @code-enhancement-studio/parameter-manager/parameters in Wix CMS.

Parameters have the following properties:

  • Key: the key to retrieve the parameter in your code. It should be unique.

  • Label: The name displayed in the dashboard.

  • Description: a short description of parameter intent to inform site administrators.

  • Type: expected value's type. Currently, the following types are supported: string, number, email, and boolean.

  • IsRequired: if true, the prod value cannot be empty.

  • Value: an object with properties prod and dev. Cannot be edited via the CMS and can only be changed via the dashboard.

 

Do not store sensitive information in parameters. You should use Wix-secrets API instead.
 

Dev Mode

devMode is enabled or disabled via the app's config.json in the editor. This allows developers to change site behaviour in preview or test versions without impacting the live website.

When isDevMode = truegetParameterValues returns dev values instead of prod values if available.

Usage

Changing Values

Using the app admin dashboard you can change parameters values

Retrieving Values

Using the method getParameterValues(...keys)from @code-enhancement-studio/parameter-manager you can retrieve parameter values for the current mode as an object.

Both frontend & backend methods rely on in-memory caching to improve performances. This means that your modification might be delay for some users:
 

  • Backend cache might take up to 5 minutes to renew.

  • Frontend cache is renew when page is refreshed.


Backend cache can be purged by publishing the website.

Caching

The method getParameterValues(...keys) from @code-enhancement-studio/parameter-manager-backend must be used when working within backend files.

bottom of page