Widget Docs
Coverage MatrixDocumentationRelease LogLog InContact Us

Season Injuries

us.season.injuries displays all current injuries for a given season, with the ability to filter by team.

For the widget to render you must provide a valid seasonId. All other properties are optional.

Parameters

Name Type Description
props object properties
Name Type Argument Default Description
seasonId number required Season ID
teamUid number optional Team Unique Id
showSeasonYearTitle boolean optional 'false' When set to true adds season year to the header title.
disableHeader boolean optional 'false' When set to true disables header with the team selection dropdown.
disableDropdown boolean optional 'false' When set to true disables the team dropdown in the header.
disableTeamHeaders boolean optional 'false' When set to true disables team headers.
border boolean optional If true enables a border around the widget.
onItemClick function optional Function/event handler. Emits playerId on player row click or touch. Emits teamId and uniqueTeamId on team header click or touch.

Examples

<div class="sr-widget" data-sr-widget="us.season.injuries" data-sr-season-id="79507"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>
<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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.season.injuries', {seasonId: 79507, 1disableHeader: true});
</script>
<div id="sr-widget"></div>

<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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.season.injuries', {seasonId: 79507, onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>