Betting Entertainment Tools

NBA Injuries

A season.basketball.injuries brings basketball players' injuries, presented for a particular season/team.

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

  1. seasonId,
  2. matchId or tournamentId or uniqueTournamentId (are used to obtain current seasonId).

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>
seasonId number <required>

Season Id.

matchId number <required>

Match Id.

tournamentId number <required>

Tournament Id.

uniqueTournamentId number <required>

Unique Tournament Id.

dateFormatTranslationKey string date_long_week_day_zero_prefixed_day_long_month_full_year

Custom date formats, accepts:
date_short_month_zero_prefixed_day (short_month, day),
date_short_month_zero_prefixed_day_full_year (short month, day, year),
date_short_week_day_short_month_day (short weekday, short month, day),
date_long_week_day_long_month_zero_prefixed_day (weekday, month, day),
date_long_week_day_zero_prefixed_day_long_month_full_year (weekday, day, month),
date_zero_prefixed_day_zero_prefixed_numerical_month_full_year(day, month, year),
date_european_zero_prefixed_day_numerical_month_full_year(day, month, year),
date_american_numerical_moth_zero_prefixed_day_full_year(month, day, year),

sortBy string team

Default sorting tab, accepts date or team.

uniqueTeamId number

When set (Team Uid), displays the teams injuries.

disableWidgetHeader boolean false

When set to true, hides widget header.

disableHeader boolean false

When set to true, hides header of selection tab and team drop-down.

onTrack function

Function/event handler, see Tracking options.

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="season.basketball.injuries" data-sr-season-id="43374" data-sr-unique-team-id="3414"></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', 'season.basketball.injuries', {seasonId: 43374, uniqueTeamId: 3414});
</script>
<div id="sr-widget"></div>