Promotion List
Overview
// custom defined tag
<bam-promotion-list
property-id="1"
placement-id="1"
context="context">
</bam-promotion-list>
The promotion list component is meant for right rails or in page content. The state selector will refetch promotions when changed. The component also has a data-max-length attribute that will toggle the expand/collapse “See all” functionality.
SSR AvailableThis component is available for server side rendering.
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
age | age | number | undefined | |
callback | -- | You cannot pass this parameter via an attribute. You must set the callback function after the DOM has loaded. | () => void | this.defaultCallback |
context | context | (required) | string | undefined |
ctaType | cta-type | string | undefined | |
darkMode | dark-mode | boolean | false | |
defer | defer | boolean | undefined | |
devMode | dev-mode | boolean | false | |
deviceType | device-type | "android" | "desktop" | "ios" | "mobile" | undefined | |
gameId | game-id | number | undefined | |
hideUnderage | hide-underage | boolean | false | |
isBetsyncUser | is-betsync-user | boolean | undefined | |
isMobile | is-mobile | boolean | undefined | |
league | league | string | undefined | |
location | location | string | undefined | |
maxLength | max-length | If provided list will render a “See all”/”Hide” button, capping the number of promotions shown to the max length in its collapsed state | number | undefined |
moduleTitle | module-title | Changes the title shown in the header of the component. Defaults to “Offers”. | string | undefined |
pageSlug | page-slug | string | undefined | |
placementId | placement-id | (required) | number | undefined |
propertyId | property-id | (required) | number | undefined |
showFeaturedPromotion | show-featured-promotion | boolean | false | |
subdivision | subdivision | number | undefined | |
subscriptionTier | subscription-tier | 0 | 1 | 2 | 3 | undefined | |
terms | terms | "affiliate" | "geo" | 'geo' | |
wasPro | was-pro | boolean | undefined |