Parameters
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
props |
object |
<required> |
||
matchId |
number | Provided matchId will be selected in the list with hover style. |
||
dayOffset |
number | 0 | Day offset from the current date. Default value is |
|
sportId |
number | 1 | Sport id. Check |
|
isLive |
boolean | false | When set to |
|
showOdds |
boolean | false | When set to |
|
expandAll |
boolean | false | Expand all panels |
|
disableOdds |
boolean | false | When set to |
|
onItemClick |
function | Function/Event handler, emits |
||
onTrack |
function | Function/event handler, see Tracking options |
||
filterUtIds |
string | Comma-separated unique tournament ids. When set, only matches within specified unique tournaments will be listed. |
||
filterRcIds |
string | Comma-separated real category ids. When set, only matches within specified real categories will be listed. |
||
favoriteTournaments |
string | Comma-separated unique tournament ids. When set, tournaments with specified unique id will be added to the top of the matchlist. |
||
hideLimitedCoverageIcon |
boolean | false | When set to |
|
oddsDeeplinkLabels |
object | An object of deeplinking labels. |
||
deeplinkParams |
object | An object of deeplinking params. |
Examples
HTML/Declarative
<div id="sr-widget" data-sr-widget="match.matchList" data-sr-sport-id="2"></div>
<script type="application/javascript" src="https://widgets.sir.sportradar.com/sportradar/widgetloader" async></script>
JS/Programmatic
<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('addWidget', '#sr-widget', 'match.matchList', {sportId: 2});
</script>
<div id="sr-widget"></div>
JS/Example of using Event Handler
<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('addWidget', '#sr-widget', 'match.matchList', {sportId: 1, onItemClick: function(type, obj){alert('matchId: ' + obj.matchId);}});
</script>
<div id="sr-widget"></div>