Appearance
wiz-button
The wiz-button component is a clickable HTML button with a link. For more information, see Button.
Learn more about components
Usage
To add the wiz-button component to your email and change its properties, in the App.vue file:
Add the
wiz-buttoncomponent to your email template.html<!--./App.vue --> <template> <div> <wiz-root align="center" style="background: #ffffff; width: 700px;"> <wiz-button :text="$t('wiz_button_8f1e')" id="wiz-button-6cbe" align="center" :line-height="20" :text-align="'left'" :full-width="true" :link="'https://viseven.com/'"></wiz-button> </wiz-root> </div> </template>The
idattribute is required for correct display of the component styles in eWizard Editor.Change the button text in the
<i18n></i18n>localization tag.html<!--./App.vue --> <i18n> { "eng": { "wiz_button_8f1e": "<span><span style=\"color:#ffffff;font-family:arial,helvetica neue,helvetica,sans-serif;font-size:17px;\"><b>My button text</b></span></span>" } } </i18n>For more information, see Localization.
Attributes
You can change the wiz-button component appearance and behavior using the following attributes within the <wiz-button></wiz-button> tag.
line-heightTo change the button text height, set the height in pixels in the attribute value.
html<wiz-button :line-height="30"></wiz-button>full-widthTo make a full width button on the page, set the attribute value to
true. Use thetext-alignproperty in this mode.html<wiz-button :text-align="'center'" :full-width="true"></wiz-button>text-alignTo change the alignment of the button text, set the attribute value to
left,center,right, orjustify. Set thefull-widthattribute totrueto see the button text alignment.html<wiz-button :text-align="'left'" :full-width="true"></wiz-button>linkAdd the button link to the attribute value.
html<wiz-button :link="'https://viseven.com/'"></wiz-button>alignTo change the button alignment on the page, set the attribute value to
left,center, orright. Use this attribute only if thefull-widthattribute value isfalse.html<wiz-button align="center" :full-width="false"></wiz-button>
Properties
The following properties are available:
| Property | Type | Default value | Description |
|---|---|---|---|
align | string | left | The button alignment on the email layout. One of: "center", "left", "right". |
fullWidth | boolean | false | Stretches the button to the fill width of the email. |
lineHeight | number | 20 | Spacing between lines in pixels. |
link | string | https://viseven.com/ | A URL or link target for the button. |
text | string | <strong><span style='color:#ffffff;font-size: 16px;font-family:arial,helvetica neue,helvetica,sans-serif;'>Button</span></strong> | The button text. |
textAlign | string | center | The alignment of the button text. One of: "left", "right", "center", "justify". |