Betting Entertainment Tools

Match Preview

A match.preview brings general statistics about a match such as team infromations, scoring, league position.

Parameters
Name Type Attributes Default Description
props object <required>
matchId number <required>

Match ID

openMoreStatsInNewTab boolean false

Open more stats on S5 statistics centre page in new tab or current tab.

isCollapsed boolean false

Default state of widget is collapsed.

disableExpandButton boolean false

Remove button for expanding / collapsing widget.

disableMoreStats boolean false

Remove "more" link button with S5 statistics link.

s5ClientAlias string

Statistics client alias override.

tabs array.<object>

Definition for tabs that are displayed. See this Guide for valid values and structure.

disableTabs boolean

Show or hide tabs

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="match.preview" data-sr-match-id="21514521"></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.preview', {matchId: 21514521});
</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.preview', {matchId: 21514521});
</script>
<div id="sr-widget"></div>