Skip to content

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
conditionsCountnumberNoOptional number of individual conditions represented by this display condition