Widgets.us.season.nfl.SpecialTeams

Widget us.season.nfl.specialTeams shows the statistics of the special teams.

For the widget to render you need to provide seasonId, other properties are optional.


new SpecialTeams(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
seasonId number

Sets the selected year.

seasonType string <optional>
null

Sets the selected season type, possible values are pre, reg, post. If this prop is null the season type of the currently active week of the specified seasonId will be used.

teamId string <optional>
null

Sets the selected team. If this is set to null the alphabetically first team of the NFC that played in the selected time will be selected.

disableWidgetHeader boolean <optional>
false

When set to true, hides widget header.

enableTeamSelect boolean <optional>
false

Enables team selection. Interactive areas are:

  • team dropdown
TeamId is emitted when the dropdown selection changes.

onTrack function <optional>

Function/event handler, see Widgets.onTrack.

border boolean <optional>

If true, it draws a border around widget.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.nfl.specialTeams" data-sr-season-id="2015"></div>
 <script type="application/javascript" src="https://widgets.media.sportradar.com/uscommon/widgetloader" data-sr-language="en_us" 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.media.sportradar.com/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.nfl.specialTeams', {seasonId: 2015});
</script>
<div id="sr-widget"></div>