Injuries
us.season.nfl.injuries displays weekly 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 | NFL Season ID (Year) | |||
seasonType |
string | optional | Sets the default selected season type. If not set the widget will default to preseason. Valid values are: pre , reg , or pst . |
|||
week |
number | optional | Week 1 of seasonType | Sets the default selected week. The valid number depend on the value of seasonType. For pre , valid values are 0-4. For reg , valid values are 1-17. For pst , valid values are 1-5. |
||
teamId |
string | optional | If set, then only injuries for the given team are displayed. Otherwise injuries for all teams are displayed. | |||
disableHeader |
boolean | optional | 'false' | When set to true disables header with the week selection dropdown. |
||
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.nfl.injuries" data-sr-season-id="2018"></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.nfl.injuries', {seasonId: 2018, disableHeader: 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.nfl.injuries', {seasonId: 2018, onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>
Updated almost 2 years ago