thegeneralyst/AnopaDocs
Marketing

Close Popup

Closes the MarketingPopup when clicked. Place inside your popup design slot and wrap a custom icon or button.

Close Popup is the close trigger for MarketingPopup.

What it does

Place AP_ClosePopup inside your popup design (Desktop Slot or Mobile Slot). When the wrapped icon or button is clicked, it signals the associated MarketingPopup to close.

AP_ClosePopup does not render its own visual style; instead, it wraps a custom icon or button component instance that you design.

How to set it up

  1. Design your close button or icon (for example, an × icon or a "Close" button).
  2. In your MarketingPopup layout, add AP_ClosePopup inside the popup design area (Desktop Slot or Mobile Slot).
  3. Connect your designed close icon or button to the Icon slot of AP_ClosePopup.
  4. When users click this icon or button, the MarketingPopup will close.

Key behaviours

  • Acts as the close trigger specifically for MarketingPopup.
  • Must be placed inside the popup design to function.
  • Uses the provided Icon component instance for its visual appearance.
  • Click interaction is handled automatically; no extra wiring is required beyond assigning the Icon.

Property Controls

ControlTypeDefaultDescription
IconComponentInstanceNoneComponent instance for the close icon or button that AP_ClosePopup wraps and uses as the clickable close trigger.