Widgets.nfl.player.TopSpeed

Widget nfl.player.topSpeed brings highest speed attained for each player, shown for their last completed game as well as the season to date. All NGS stats are based on non-special teams plays. Stats update after every completed game.

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


new TopSpeed(props)

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

Season Id.

teamId string

Team Id.

playerId string

Player Id.

useTeamColors boolean <optional>
null

Valid values are:

  • null (the default) = settings from the client configuration are used. If the client is configured to use team colors, then the theme can be overriden with the teamColorsTheme parameter.
  • true = team colors will be used, as specified with the teamColorsTheme parameter. If the teamColorsTheme is not specified and the client configuration does not specify a team colors theme, or if the teamColorsTheme contains an invalid theme name, then team colors will not be used.
  • false = team colors will not be used.
teamColorsTheme string <optional>
null

When set (and not disabled by useTeamColors), specifies the name of the formula to calculate team colors (e.g. mono-team-colors-light).

onTrack function <optional>

Function/event handler, see Widgets.onTrack

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="nfl.player.topspeed" data-sr-season-id="2016" data-sr-team-id="sd:team:97354895-8c77-4fd4-a860-32e62ea7382a" data-sr-player-id="sd:player:2bb70d56-a79a-4fa1-ae37-99858a3ffd55"></div>
<script type="application/javascript" src="https://widgets.media.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.media.sportradar.com/sportradar/widgetloader","USW", {
        language: 'en'
    });
    USW('addWidget', '#sr-widget', 'nfl.player.topspeed', {seasonId: 2016, teamId: 'sd:team:97354895-8c77-4fd4-a860-32e62ea7382a', playerId: 'sd:player:2bb70d56-a79a-4fa1-ae37-99858a3ffd55'});
</script>
<div id="sr-widget"></div>