Available tab IDs
Single outcome market tabs (secondary tab label keys are market IDs):
goalscorers– Goalscorers (group: Anytime / First / Last)playerToScorePlusTwo– To Score 2+playerToScorePlusThree– To Score 3+playerToScoreFromOutsideOfTheBox– To score outside the boxplayerToScoreOrAssist– To score or assistplayerToBeSentOff– To be sent off
Multiple outcome market tabs (secondary tab label keys are outcome IDs):
playerTotalShotsOnGoalIncludingOvertime– Total shots on goalplayerTotalShotsIncludingOvertime– Total shotsplayerTotalPassesIncludingOvertime– Total passesplayerTotalTacklesIncludingOvertime– Total tacklesanytimeGoalscorerAndOneXTwo– Anytime goalscorer & 1x2xthGoalscorerAndOneXTwo– Xth goalscorer & 1x2playerToScoreIncludingOvertime– Player to score
Line market tabs (secondary tab label keys: "increase" / "decrease"):
playerGoalsIncludingOvertime– GoalsplayerShotsOnGoalIncludingOvertime– Shots on goalplayerShotsIncludingOvertime– ShotsplayerToBeCardedIncludingOvertime– To be carded (prematch)playerToBeCardedLive– To be carded (live)playerAssistsIncludingOvertime– AssistsplayerPassesIncludingOvertime– PassesplayerTacklesIncludingOvertime– TacklesplayerXPlusShotsOnTarget– X+ shots on targetplayerXPlusShots– X+ shotsplayerXPlusShotsOnTargetFromOutsideOfTheBox– X+ shots on target from outside the boxplayerXPlusAssists– X+ assists
Parameters
| Name | Type | Attributes | Description |
|---|---|---|---|
props |
object |
<required> |
|
matchId |
string |
<required> |
The match ID to get player prop markets for. |
onAction |
function | Callback that emits bet slip data when a selection is clicked. |
|
excludedTabs |
Array.<string> | Market IDs to exclude from the navigation. |
|
includedTabs |
Array.<string> | Market IDs to include in the navigation. When set, only tabs matching these IDs are displayed. Takes precedence over |
|
tabOrder |
Array.<string> | Ordered list of market IDs defining custom sort order. Markets not in the list are placed at the end. |
|
labelOverrides |
object | Override labels for specific tabs and their secondary tabs, keyed by tab ID. Each entry uses the tab ID as key and accepts:
|
Examples
#1 Basic usage
<script>
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
)})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
SIR('registerAdapter', '{ADAPTER_NAME}');
SIR('addWidget', '#sr-widget', 'match.playerPropZone', {
matchId: 'sr:match:61301097'
});
</script>
<div id="sr-widget"></div>
#2 With tab filtering, ordering and label overrides
<script>
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
)})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
SIR('registerAdapter', '{ADAPTER_NAME}');
SIR('addWidget', '#sr-widget', 'match.playerPropZone', {
matchId: 'sr:match:61301097',
includedTabs: ['goalscorers', 'cards'],
tabOrder: ['cards', 'goalscorers'],
labelOverrides: {
goalscorers: {
label: 'Goals',
secondaryTabLabels: {
'40': 'Any'
}
}
},
onAction: function(data) {
console.log(data);
}
});
</script>
<div id="sr-widget"></div>