Betting Entertainment Tools

Team Leaderboard

A team.leaderboard brings team's rankings across four statistical categories: Goals, Assists, Cards and Injuries.

For the widget to render you need to provide one of the following parameter combinations:

  1. matchId and team (home or away),
  2. teamUid and seasonId,
  3. teamUid and tournamentId,
  4. teamUid and uniqueTournamentId.
Parameters
Name Type Attributes Default Description
props object <required>
matchId number <required>

Match Id.

seasonId number <required>

Season Id.

uniqueTournamentId number <required>

Unique Tournament Id.

teamUid number <required>

Team Uid.

tournamentId number <required>

Tournament Id.

team string home

Shows the stats for the home or away team.

categories string goals, assists, cards, injuries

A comma-separated list of categories goals, assists, cards, injuries to display. Categories will be displayed in the same order as they have been defined.

disableWidgetHeader boolean true

When set to true, hides widget header.

limit number 5

Limits number of rows.

disableContrChart boolean false

When set to true, hides contribution chart.

activeTab string id_tab_goals

Determines active category tab. Valid values are id_tab_goals, id_tab_assists, id_tab_cards, id_tab_injuries.

onTrack function

Function/event handler, see Tracking options.

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="team.leaderboard" data-sr-match-id="20521319" data-sr-team="home"
data-sr-categories="goals, cards, assists, injuries" data-sr-disable-widget-header="false"></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', 'team.leaderboard', {matchId: 20521319, team: 'home', categories: 'goals, cards, assists, injuries', disableWidgetHeader: false});
</script>
<div id="sr-widget"></div>