Matchup
us.season.nfl.matchup displays opponent statistics for several positions (QB, RB, WR, TE) against a given 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) | |||
teamId |
string | optional | null | Sets the selected team. If this is set to null the alphabetically first team of the NFC will be selected. |
||
position |
string | optional | null | Sets the position of the opposing teams. Valid values are: quarterbacks , running_backs , wide_receivers , and tightends . If this is null , the default selection is quarterbacks . |
||
seasonType |
string | optional | null | Sets the default selected season type. Valid values are: pre , reg , or pst . If this prop is null the season type of the currently active week of the specified seasonId will be used. |
||
week |
number | optional | null | Sets the selected week number. The valid number depends 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. If null , the season type of the currently active week of the specified seasonId will be used. |
||
disableWidgetHeader |
boolean | optional | 'false' | When set to true hides the widget header. |
||
selectedUpperTab |
string | optional | null | Changes the default active tab in the first row of tabs. The valid inputs depend on the default selected position . If position is not provided the default is quarterbacks . See below for valid positions. |
||
selectedLowerTab |
string | optional | null | Changes the default active tab in the second row of tabs. This row isn't always available depending on the selected position . If position is not provided the default is quarterbacks . See below for valid positions. |
||
enableTeamSelect |
boolean | optional | false | Enables team selection. Interactive area is team dropdown. TeamId is emitted on changing the item in the dropdown. | ||
border |
boolean | optional | If true draws a border around the widget. |
Examples
<div class="sr-widget" data-sr-widget="us.season.nfl.matchup" data-sr-season-id="2015"></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.matchup', {seasonId: 2015});
</script>
<div id="sr-widget"></div>
Updated almost 2 years ago