Skip to main content
wiz-calendar
eWizard Team avatar
Written by eWizard Team
Updated over a year ago

The wiz-calendar component is a boxed calendar showing the month and day that you can edit manually in eWizard Editor. You can add the link to this component. For more information, see Calendar.

Installation

To install the wiz-calendar component, run the following command in your email project root directory:

wiz install @email/wiz-calendar

For more information, see Install components.

Usage


NOTE: As best practice, use eWizard Editor to add and edit the components.


To add the wiz-calendar component to your email and change its properties, in the App.vue file:

1) Add the wiz-calendar component to your email template.

<!--./App.vue --><template>
<div>
<wiz-root align="center" style="background: #ffffff; width: 700px;">
<wiz-calendar :month="$t('wiz_calendar_4f97')" :day="$t('wiz_calendar_1292')" id="wiz-calendar-258c" :link="''"></wiz-calendar>
</wiz-root>
</div>
</template>

NOTE: The id attribute is required for correct display of the component styles in eWizard Editor.


2) Add the month and day text to the <i18n></i18n> localization tag.

<!--./App.vue --><i18n>
{
"eng": {
"wiz_calendar_4f97": "<div style=\"line-height:26px;text-align:center;\"><span style=\"color:#0084c4;font-family:arial,helvetica neue,helvetica,sans-serif;font-size:26px;\"><b>DEC</b></span></div>",
"wiz_calendar_1292": "<div style=\"line-height:50px;text-align:center;\"><span style=\"white-space:nowrap;\"><span style=\"color:#434345;font-family:arial,helvetica neue,helvetica,sans-serif;font-size:50px;\">16</span></span></div>"
}
}
</i18n>

For more information, see Localization.

3) Add a custom link as the link attribute value.

<wiz-calendar :link="'https://viseven.com/'"></wiz-calendar>

Properties

The wiz-calendar component has the following properties:

Property

Type

Default

Description

month

String

<div style='text-align: center;line-height: 26px'><strong><span style='font-size:26px; color:#0084c4;font-family:arial,helvetica neue,helvetica,sans-serif;'>JAN</span></strong></div>

The text of the calendar month.

day

String

<div style='text-align: center;line-height: 50px'><span style='color:#434345; font-size:50px;font-family:arial,helvetica neue,helvetica,sans-serif; white-space: nowrap;'>25</span></div>

The text of the calendar day.

link

String

N/A

The link that opens when you click the calendar.

For more information, see Component properties.

Did this answer your question?