Skip to main content

Top Ten

Show a list of promotions with the top 3 being highlighted.

Overview

TopTenComponent

This component is designed to show a top ten (by default) of promos from a placement with the top 3 being highlighted in vertical cards.

max-length is 10 by default, but can be modified, but no less than 3.

Overview

// custom defined tag
<bam-top-ten
id="inline1"
class="bam-block"
dev-mode="true"
placement-id="1"
property-id="1"
location="CO"
context="new-york-post-right-rail">
</bam-top-ten>
SSR AvailableThis component is available for server side rendering.

Properties

PropertyAttributeDescriptionTypeDefault
affiliateaffiliatestringundefined
affiliateTypeaffiliate-typestringundefined
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
internalIdinternal-idstringundefined
isBetsyncUseris-betsync-userbooleanundefined
isLoggedInis-logged-inbooleanundefined
isMobileis-mobilebooleanundefined
leagueleaguestringundefined
locationlocationstringundefined
maxLengthmax-lengthThis will determine the maximum number of promotions to display.number10
moduleTitlemodule-titlestringundefined
pagepageOverrides the start index calculationnumberundefined
pageSlugpage-slugstringundefined
placementIdplacement-id(required)numberundefined
propertyIdproperty-id(required)numberundefined
restartrestartbooleanundefined
reviewContextreview-contextstring'review-link'
showContainershow-containerSetting this to false will hide the surrounding border, title, and location dropdownbooleantrue
sponsorSlugsponsor-slugstringundefined
subdivisionsubdivisionnumberundefined
subscriptionTiersubscription-tier0 | 1 | 2 | 3undefined
termsterms"affiliate" | "geo"'geo'
userParentBookIdsuser-parent-book-idsstringundefined
wasProwas-probooleanundefined