Skip to content
This plugin is new and currently in beta. For the stable version, please use the previous version of the plugin.

DisplayCondition

Configuration interface for conditional element visibility.

typescript
interface DisplayCondition

Description

DisplayCondition defines the configuration for controlling when an HTML element should be displayed based on dynamic conditions. This is used for personalization, A/B testing, and responsive content delivery in email templates.

Import

typescript
import { DisplayCondition } from '@stripoinc/ui-editor-extensions';

Properties

PropertyTypeRequiredDescription
idnumberYesUnique identifier for the condition
namestringYesHuman-readable name for the condition
descriptionstringYesDetailed description of what the condition does
beforeScriptstringYesJavaScript code executed before condition evaluation
afterScriptstringYesJavaScript code executed after condition evaluation
extraDatastringNoOptional additional data in string format