mailui.init({
features: {
displayCondition: {
enabled: true,
},
}
});
mailui.init({
displayConditions: [
{
label: "Men",
description: "All man customers",
key: "ismen",
},
{
label: "Women",
description: "All women customers",
key: "iswomen",
},
{
label: "Child",
description: "All child customers",
key: "ischild",
},
]
});
Property | Required | Description | Type |
---|---|---|---|
label | Yes | This is the name of the condition that the user will see. | string |
description | no | This is the description that the user will see for the condition. | string |
key | Yes | The key is a unique value that defines each condition. | string |
mailui.init({
displayConditions: [
{
label: "Men",
description: "All man customers",
before: "{{#ismen}}",
after: "{{/ismen}}",
}
]
});
Property | Required | Description | Type |
---|---|---|---|
label | Yes | This is the name of the condition that the user will see. | string |
description | no | This is the description that the user will see for the condition. | string |
before | Yes | This is the opening syntax for the condition added before the selected element. | string |
after | Yes | This is the closing syntax for the condition added before the selected element. | string |
mailui.setDisplayConditions([
{
label: "Men",
description: "All man customers",
before: "{{#ismen}}",
after: "{{/ismen}}",
},
{
label: "Women",
description: "All women customers",
before: "{{#iswomen}}",
after: "{{/iswomen}}",
}
]);