Betting Entertainment Tools

Head To Head

A match.headToHead brings head to head comparison of two teams: previous matches between the two opponents, the current team forms, the position in the league and the previous and upcoming five matches of each team.

For the widget to render you need to provide matchId, other properties are optional.

Widget displays date/time in end user's local timezone (based on end user's operating system settings).

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

Match ID.

disableWidgetHeader boolean false

When set to true, hides widget header.

disableMatchHeader boolean false

When set to true, hides match header.

disableTeamForm boolean false

When set to true, hides team form.

disableTeamFormTitle boolean false

When set to true, hides team form title.

disablePreviousMeetings boolean false

When set to true, hides previous meetings.

disableNextMatches boolean false

When set to true, hides next matches.

disableSeasonStats boolean false

When set to true, hides season stats.

horizontalTeamForm boolean false

When set to true, changes orientation of team form display.

hideNoDataErrors boolean true

When set to true, hides the partial no data errors if they exists.

onTrack function

Function/event handler, see Tracking options.

Examples

HTML/Declarative

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