Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Game Penalties

us.match.nfl.penalties provides a breakdown of each team's penalties and penalty yardage for a given game.

For the widget to render you must provide a valid matchId.

Parameters

NameTypeArgumentDefaultDescription
matchIdstringrequiredMatch ID
disableWidgetHeaderbooleanoptionalfalseWhen set to true hides the widget header.
disableMatchHeaderbooleanoptionalfalseWhen set to true hides the match header.
collapseGameInformationbooleanoptionaltrueWhen set to false opens the game information section
useTeamColorsbooleanoptionalnullValid values are: null(Uses your settings. If you are configured to use team colors, then the theme can be overridden with the teamColorsTheme parameter.), true(team colors will be used, as specified with the teamColorsTheme parameter. If your configuration does not specify a team colors theme, then team colors will not be used.), or false(team colors will not be used).
teamColorsThemestringoptionalnullWhen set (and not disabled by useTeamColors), specifies the name of the formula to calculate team colors (e.g. mono-team-colors-light).
enableTeamSelectbooleanoptionalfalseWhen set to true enables team selection. Interactive areas are: team name and logo in a match header and team logos in the statistics sub-headers. TeamId is emitted on click or touch.
borderbooleanoptionalIf true draws a border around the widget.

Examples

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