Widgets.nfl.game.Scoreboard

Widget nfl.game.scoreboard brings crucial information about a match such as the name of the competition, the current score, the teams represented by name and logo.

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


new Scoreboard(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
matchId string

Match Id.

disableWidgetHeader boolean <optional>
false

When set to true, hides widget header.

disableMatchHeader boolean <optional>
false

When set to true, hides match header.

collapseGameInformation boolean <optional>
true

When set to false, opens the game information section.

enableTeamSelect boolean <optional>
false

When set to true, enables team selection. Interactive areas are:

  • team name and crest in a match header,
  • rows in the scoring table of the match header.
TeamId is emitted on click or touch.

onTrack function <optional>

Function/event handler, see Widgets.onTrack

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="nfl.game.scoreboard" data-sr-match-id="sd:match:2724b0ed-71b1-4c35-a977-087f4f9404f4"></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.game.scoreboard', {matchId: 'sd:match:2724b0ed-71b1-4c35-a977-087f4f9404f4'});
</script>
<div id="sr-widget"></div>