Appearance
eWizard.js v5.24.3 and eWizard CLI v0.36.3
December 2022
New in eWizard.js
Export of specific blocks as images to PDF
With the as-image-options attribute, you can now choose what blocks to export as images to PDF.
For this, add as-image-options to the <wiz-block> tag:
html
<!-- App.vue-->
<template>
<wiz-root align="center" style="background: #ffffff; width: 700px;">
<wiz-block as-image as-image-options="('asImageInPdf': true, 'type': 'jpeg')">
<wiz-placeholder>
<wiz-column :width="100">
<wiz-image src="./common/media/images/logo.png"></wiz-image>
<wiz-text :text="$t('text_1')"></wiz-text>
</wiz-column>
</wiz-placeholder>
</wiz-block>
</wiz-root>
</template>For more information, see Export specific blocks as images to PDF.
Proportional scaling for e-Detailer content
Use the proportional option in settings.json of an e-Detailer to turn on proportional scaling of e-Detailer content.
json
// ./settings.json
{
"adaptationScale": {
"proportional": true
},
"targetDevices": [
{
"device": "iPad",
"code": "ipad",
"resolution": "1024x768",
"dpr": 1,
"viewport": {
"width": "1024",
"height": "768"
}
}
]
}This option improves content sharing across multiple devices.
For more information, see Responsiveness settings for scaffolding templates.
New in eWizard CLI
wiz dev --validate
The new --validate option of the wiz dev command allows you to validate a development build. The command validates the HTML content in the <i18n> localization tags. The option uses the rules from the HTML-validate validator.
For more information, see wiz dev [options].
Documentation updates
We've updated the following documentation articles: