Widgets.us.match.nfl.ScoreNano

A us.match.nfl.scoreNano is a nano variant of the scoreboard. Features the current score, the teams represented by name and logo and the status of a match.

For the widget to render you need to provide matchId. Minimal widget width is 170px.


new ScoreNano(props)

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

Match ID

showOdds boolean <optional>

When set to true displays odds for every game with odds available (pre-match only).

oddsType boolean <optional>

Accepts a single input of moneyline, spread or overunder that overrides the rotating odds. Only a selected odds type displays in the ScoreNano.

border boolean <optional>

Displays border.

onItemClick function <optional>

Function/event handler. Only target item is match. Emits various match props on click or touch as matchId, sportId, realCategoryId, seasonId, tournamentId, uniqueTournamentId, awayTeamUid, homeTeamUid, awayTeamId, homeTeamId, seasonType, week. Valid matchStatus values are: pre, live, post. For example: match: {"matchId":"sd:match:ee83c78d-f7eb-46fc-a851-e5e3b2a82f44","seasonId":2020,"tournamentId":47,"uniqueTournamentId":31,"realCategoryId":43,"sportId":16,"awayTeamUid":4421,"homeTeamUid":367364,"matchStatus":"post","seasonType":"REG","week":10,"awayTeamId":"sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9","homeTeamId":"sd:team:d26a1ca5-722d-4274-8f97-c92e49c96315"};

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.match.nfl.scoreNano" data-sr-match-id="sd:match:5c981331-29d9-4c65-b4f2-5e1101295b3e"></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.match.nfl.scoreNano', {matchId: sd:match:5c981331-29d9-4c65-b4f2-5e1101295b3e});
</script>
<div id="sr-widget"></div>