Widget Types

Layout types

TypeDescription
BUILT_INinserts to the target element by placements settings
DETACHED
FLOATING_BOX
FLOATING_BAR
LAUNCHER
CONTENT_LOCKER

Widget types


TypeDescription
SUBSCRIPTION_FORM
INFORMER
REQUEST_FORM
LAUNCHER
AGE_VERIFY

Placements


List of placements. WidgetAPI checks for the first entry to be present at the DOM and then inserts the widget.

Structure

[{
        selector: '#widget',
        insertType: 'AFTER_BEGIN'
      }]

Placement

ParameterDescription
selectorCSS selector
insertTypeOne of: BEFORE_BEGIN, AFTER_BEGIN, BEFORE_END, AFTER_END, REPLACE