Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Score

us.match.ncaaf.score displays the current score, the teams represented by name and logo, the game status, and other key game-related information as collapsible content.

For the widget to render you must provide a valid matchId. All other properties are optional.

Parameters

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
matchIdnumberrequiredMatch ID
showDatebooleanoptionalShows the date of future games.
showOddsbooleanoptionaltrueIf false hides odds (pre-game only).
isCollapsedbooleanoptionaltrueIf false collapses collapsible content (i.e. game information).
disablePitchbooleanoptionalIf true hides the field/pitch.
disableHeaderbooleanoptionalIf true hides the header.
disableGameInfobooleanoptionalIf true hides the expandable bottom section containing game details.
disableAttendancefunctionoptionalIf true hides attendance content.
autoSlidebooleanoptionaltrueDisables auto sliding of the content in the game info section.
autoSlideSpeednumberoptional5000Sets the delay of auto sliding of the content in the game info section (in milliseconds).
disableTeamClickbooleanoptionalIf true disables onItemClick handler for teams.
disablePlayerClickbooleanoptionalIf true disables onItemClick handler for players (i.e. team leaders under game information).
enableMatchClickbooleanoptionalIf true the whole widget triggers match target event on onItemClick and disables all other targets.
preMatchLinksstringoptionalComma separated string of link keys for pre-game. Can be undefined, default, preview, boxscore, gametracker, or recap. Entering default is the same as entering 'preview'.
liveMatchLinksstringoptionalComma separated string of link keys for a live game. Can be undefined, default, preview, boxscore, gametracker, or recap. Entering default is the same as entering 'boxscore, gametracker'.
postMatchLinksstringoptionalComma separated string of link keys for post-game. Can be undefined, default, preview, boxscore, gametracker, or recap. Entering default is the same as entering 'boxscore, recap'.
borderbooleanoptionaltrueIf false hides a border around the widget.
onItemClickfunctionoptionalFunction/event handler. More info below.

By default, the widget has two click target areas: team and player.

The player targets appear in the Game Information section, depending on game status.

With preMatchLinks, liveMatchLinks and/or postMatchLinks set the Score widget can get additional targets: preview, boxscore, gametracker, recap links.

When enableMatchClick is set to true the whole Score widget becomes a match target and all other targets are disabled. All targets emit the following match props on click or touch: matchId, sportId, realCategoryId, seasonId, tournamentId, uniqueTournamentId, awayTeamUid, homeTeamUid, matchStatus.

Team target adds uniqueTeamId, player target adds playerId.

Valid matchStatus values are: pre, live, post.

Examples

"team",{"matchId":25131128,"seasonId":75095,"tournamentId":76282,"uniqueTournamentId":27625,"realCategoryId":43,"sportId":16,"awayTeamUid":4352,"homeTeamUid":4312,"matchStatus":"post","uniqueTeamId":4352}

"player",{"matchId":25131128,"seasonId":75095,"tournamentId":76282,"uniqueTournamentId":27625,"realCategoryId":43,"sportId":16,"awayTeamUid":4352,"homeTeamUid":4312,"matchStatus":"post","playerId":1235378}

"recap",{"matchId":25131128,"seasonId":75095,"tournamentId":76282,"uniqueTournamentId":27625,"realCategoryId":43,"sportId":16,"awayTeamUid":4352,"homeTeamUid":4312,"matchStatus":"post"}

"match",{"matchId":25131128,"seasonId":75095,"tournamentId":76282,"uniqueTournamentId":27625,"realCategoryId":43,"sportId":16,"awayTeamUid":4352,"homeTeamUid":4312,"matchStatus":"post"}
<div class="sr-widget" data-sr-widget="us.match.ncaaf.score" data-sr-match-id="14340119"></div></code>
<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.ncaaf.score', {matchId: 14340119});
</script>
<div id="sr-widget"></div>
<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.ncaaf.score', {matchId: 14340119, postMatchLinks: 'default', onItemClick: function(target, obj){alert(target+':'JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>