Widget Types
Layout types
| Type | Description |
|---|---|
| BUILT_IN | inserts to the target element by placements settings |
| DETACHED | |
| FLOATING_BOX | |
| FLOATING_BAR | |
| LAUNCHER | |
| CONTENT_LOCKER |
Widget types
| Type | Description |
|---|---|
| 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
| Parameter | Description |
|---|---|
| selector | CSS selector |
| insertType | One of: BEFORE_BEGIN, AFTER_BEGIN, BEFORE_END, AFTER_END, REPLACE |
editted from github
Updated 6 months ago
