Appearance
wiz-event-invitation
Use the wiz-event-invitation component to create a button that lets you download an ICS file. You can add the generated ICS file with the event details to the calendar. For more information, see Event.
Learn more about components
Usage
To add the wiz-event-invitation component to your email and change its properties in the App.vue file:
Add the
wiz-event-invitationcomponent to your email template.html<!--./App.vue --> <template> <wiz-wrapper> <wiz-root> <wiz-event-invitation :text="$t('wiz_event_invitation_46d2')" id="wiz-event-invitation-b0df" :ics-calendar="{ 'name': 'My event', 'date': '2022-11-26', 'time': {'from': '01:30', 'to': '03:30'}, 'timezone': 60, 'location': 'Alaska', 'description': 'My event description', 'link': 'https://your-instance.ewizard.io/path/to/invitation.isc' }" ></wiz-event-invitation> </wiz-root> </wiz-wrapper> </template>The
idattribute is required for the correct display of the component styles in eWizard Editor.Change the component button text in the
<i18n></i18n>localization tag.html<!--./App.vue --> <i18n> { "eng": { "wiz_event_invitation_46d2": "ADD TO MY CALENDAR" } { </i18n>For more information, see Localization.
Attributes
You can change the wiz-event-invitation component appearance and behavior using the following attributes within the <wiz-event-invitation></wiz-event-invitation> tag.
:textModify the component button text by changing the
:textattribute value. To hide the time range from the agenda, set theis-timeattribute value tofalse.html<wiz-event-invitation :text="$t('wiz_event_invitation_46d2')"></wiz-event-invitation>Use this attribute to define the key, such as
wiz_event_invitation_46d2for the key-value pair in thei18ntag.You can use the
:textattribute value as a string without the localization key. For example:html<wiz-event-invitation :text="'This is my text'"></wiz-event-invitation>You can edit the text when you archive and upload the email project to eWizard. eWizard.js adds the localization key automatically in Editor. When you download the email project with the edited text, you can see the localization key added instead of the actual text.
line-heightSet the hight of the button text in pixels in the attribute value.
html<wiz-event-invitation :line-height="30"></wiz-event-invitation>full-widthSet the attribute value to
trueto make a full width button on the page. Use thetext-alignproperty in this mode.html<wiz-event-invitation :text-align="'center'" :full-width="true"></wiz-event-invitation>text-alignSet the attribute value to
left,center,right, orjustifyto change the alignment of the button text. To see the button text alignment, set thefull-widthattribute totrue.html<wiz-event-invitation :text-align="'left'" :full-width="true"></wiz-event-invitation>alignSet the attribute value to
left,center, orrightto change the button alignment on the page. Use this attribute only if thefull-widthattribute value isfalse.html<wiz-event-invitation align="center" :full-width="false"></wiz-event-invitation>nameEnter the name of the event as text.
html<wiz-event-invitation :ics-calendar=" { 'name': 'My event' }" ></wiz-event-invitation>dateEnter the date of the event in the
YYYY/MM/DDformat.html<wiz-event-invitation :ics-calendar="{'date': '2022-11-26'}"></wiz-event-invitation>timeEnter the time of the event using the
fromandtofields.html<wiz-event-invitation :ics-calendar="{'time': {'from': '01:30', 'to': '03:30'}}"></wiz-event-invitation>fromis the start time of the event.tois the end time of the event.timezoneEnter the timezone of the event.
html<wiz-event-invitation :ics-calendar="{'timezone': 60}"></wiz-event-invitation>The timezone is dynamically generated based on the city of the event.
locationEnter the location of the event as text.
html<wiz-event-invitation :ics-calendar="{'location': 'Vancouver, Canada'}"></wiz-event-invitation>descriptionEnter the description of the event as text.
html<wiz-event-invitation :ics-calendar="{'description': 'My event description'}"></wiz-event-invitation>linkA link to the .ics file with the event details. The link is generated automatically after you add, upload, and modify the component in eWizard Editor.
html<wiz-event-invitation :ics-calendar="{'link': 'https://api.ewizard.io'}"></wiz-event-invitation>
Properties
The following properties are available:
| Property | Type | Default value | Description |
|---|---|---|---|
align | string | center | The invitation alignment on the email layout. One of: "center", "left", "right". |
fullWidth | boolean | false | Stretches the invitation button to the full width of the email. |
icsCalendar | boolean | N/A | When true, the invitation contains the calendar element with the information about the event: timezone, location, description, and link. |
lineHeight | number | 14 | Spacing between lines in pixels. |
text | string | <strong><span style='color:#ffffff; font-size: 13px;font-family:arial,helvetica neue,helvetica,sans-serif;'> ADD TO MY CALENDAR</span></strong> | The invitation button text. |
textAlign | string | center | The alignment of the invitation button text. One of: "left", "right", "center". |