Skip to main content

Recommend Overlay

Show an overlay with recommended promotions

Overview

This component will fill the screen with a blur effect and show up to 4 recommended operators based on the placement and property ids. The “Casino Review” button links are controlled by using the review-context within the Switchboard links.

If a user clicks outside of the main component or clicks the X in the corner, the overlay will disappear and they can navigate the page normally.

The background of the overlay component can be controlled by the CSS variable: --bam-color-recommend-background

Screenshot 2024-06-11 at 1.04.06 PM.png

<bam-recommend
property-id="1" placement-id="1" context="casino-review-page">
</bam-recommend>

Properties

PropertyAttributeDescriptionTypeDefault
affiliateaffiliatestringundefined
affiliateTypeaffiliate-typestringundefined
contextcontext(required)stringundefined
ctaTypecta-typestringundefined
deferdeferbooleanundefined
devModedev-modebooleanfalse
deviceTypedevice-type"android" | "desktop" | "ios" | "mobile"undefined
gameIdgame-idnumberundefined
initialValueinitial-valuestring''
internalIdinternal-idstringundefined
isBetsyncUseris-betsync-userbooleanundefined
isMobileis-mobilebooleanundefined
leagueleaguestringundefined
locationlocationstringundefined
mainTextmain-textstring"We currently don't recommend this operator."
moduleTitlemodule-titlestringundefined
pageSlugpage-slugstringundefined
placementIdplacement-id(required)numberundefined
propertyIdproperty-id(required)numberundefined
reviewButtonTextreview-button-textstring'Casino Review'
reviewContextreview-contextstring'review-link'
subTextsub-textstring'You should not play at this operator. Here are some better ones we recommend instead.'
subdivisionsubdivisionnumberundefined
subscriptionTiersubscription-tier0 | 1 | 2 | 3undefined
underlineunderlinebooleanfalse
wasProwas-probooleanundefined