Skip to main content

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

PropertyAttributeDescriptionTypeDefault
ageagenumberundefined
callback--You cannot pass this parameter via an attribute. You must set the callback function after the DOM has loaded.() => voidthis.defaultCallback
contextcontext(required)stringundefined
ctaTypecta-typestringundefined
darkModedark-modebooleanfalse
deferdeferbooleanundefined
devModedev-modebooleanfalse
deviceTypedevice-type"android" | "desktop" | "ios" | "mobile"undefined
gameIdgame-idnumberundefined
hideUnderagehide-underagebooleanfalse
isBetsyncUseris-betsync-userbooleanundefined
isMobileis-mobilebooleanundefined
leagueleaguestringundefined
locationlocationstringundefined
maxLengthmax-lengthIf provided list will render a “See all”/”Hide” button, capping the number of promotions shown to the max length in its collapsed statenumberundefined
moduleTitlemodule-titleChanges the title shown in the header of the component. Defaults to “Offers”.stringundefined
pageSlugpage-slugstringundefined
placementIdplacement-id(required)numberundefined
propertyIdproperty-id(required)numberundefined
showFeaturedPromotionshow-featured-promotionbooleanfalse
subdivisionsubdivisionnumberundefined
subscriptionTiersubscription-tier0 | 1 | 2 | 3undefined
termsterms"affiliate" | "geo"'geo'
wasProwas-probooleanundefined