Image
. Here's how you can export Image.mailui.exportImage(function (data) {
const json = data.json;
console.log(json);
});
mailui.exportImage(function (data) {
const json = data.json;
console.log(json);
},
{
mergeTags: {
first_name: "John",
last_name: "Author",
}
});
Property | Description | Type |
---|---|---|
json | This is the JSON of the design | JSON |
Property | Required | Description | Type | Default |
---|---|---|---|---|
amp | No | It optimizes the content to load faster on mobile devices.{ amp: false; } | Boolean | false |
mergeTags | No | mergeTags allows dynamic content to be injected based on specified variables or data tags within the project.{ mergeTags: { first_name: "John", last_name: "Author", } } | Object | |
displayConditions | No | displayCondition allows you to set rules for when and how certain elements or content are displayed, based on conditions like user behavior.{ displayConditions: { ismen: true, iswomen: false, ischild: false, } } | Object |