Widget Docs
Coverage MatrixDocumentationRelease LogLog In

Season Scores

us.season.ncaaf.scores displays weekly schedules and results for all NCAA Football games.

All the properties are optional. By default, the widget will render the active season and week.

Important to note when using this widget
1. Select division and conference to determine what games are displayed in any given week. The week switcher control will allow you to navigate across every week of the current season. Selecting division narrows the available games and the week switcher to games pertaining to that division. The conference filtering applies only to regular season.
  • By default, when roundFilteringLast is set to false the week switcher control is applied after the division filter and navigates through all selected division weeks where games are being played, conference is applied last and filters the games list for a selected week. The conference selector is displayed and enabled only for regular season weeks. An empty list of games on a particular ncaaf week is possible. A "No matches available" message will be displayed in this instance.
  • If roundFilteringLast is set to true the conference filter is applied after the division narrows down the week navigation to only display the weeks in which a team from the specified conference is playing. So, if this prop is set to true and no B1G team plays in week 2 of a season, the week selector will skip from week 1 to week 3 when the end user is navigating through the various available weeks. Note that the week selector auto selects among the available ncaaf weeks on every conference change in this scenario. Postseason games are filtered by the bowls week - the conference must select all items.
2. For older seasons, the auto selected week is always the last week of the season (e.g Bowls)

3. Props selectedDate and selectedIdx you to select a particular week to display.

4. Among all the available leaguewide scores, a Score widget is used to render each individual game and features the option to include links for navigating to other widgets/content.

5. Clickable items are teams, players (i.e. team leaders) and links as noted in the Parameters section of the documentation.

Parameters

Name Type Argument Default Description
seasonId number optional Season ID. Can be any NCAAF unique tournament ID.
division string optional Selected division. See *HERE* for a list of valid divisions.
conference string optional all conferences Conference ID of the selected division. Applies only to regular season. See *HERE* for a list of valid conferences.
selectedIdx number optional Selects particular NCAAF "week" by index. Index starts with 0.
selectedDate number optional Selects particular NCAAF "week" that contains selectedDate.
roundFilteringLast boolean optional false If true the round switcher filtering is applied last.
showOdds boolean optional 'true' If false hides odds for all games.
disableDateSwitcher boolean optional If true disables the date switcher.
dropdownReverse boolean optional If true reverses the switcher dropdown items.
disableDivisionDropdown boolean optional If true hides the division dropdown.
disableConferenceDropdown boolean optional If true hides the conference dropdown.
disableGameHeader boolean optional If true the game headers are hidden.
disableGameInfo boolean optional If true hides collapsible content (i.e. game information).
disableGameInfoXSmall boolean optional 'true' If true hides collapsible content (i.e. game information) on X-Small responsive breakpoint (<321px).
preMatchLinks string optional Comma separated string of link keys for pre-game. Can be undefined, default, preview, boxscore, gametracker, recap, lineups. Entering default is the same as entering 'preview'.
liveMatchLinks string optional Comma separated string of link keys for a live game. Can be undefined, default, preview, boxscore, gametracker, recap, lineups. Entering default is the same as entering 'boxscore, gametracker'.
postMatchLinks string optional Comma separated string of link keys for post-game. Can be undefined, default, preview, boxscore, gametracker, recap, lineups. Entering default is the same as entering 'boxscore, recap'.
border boolean optional If true draws a border around the widget.
onItemClick function optional Function/event handler. More info below.

onItemClick Info:
By default, the widget has two click target areas: team and player. The player targets appear in the game information section depending on the game status.

With preMatchLinks, liveMatchLinks and/or postMatchLinks you may set the Score widget to display additional targets: preview, boxscore, gametracker, recap links.

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"}
<div class="sr-widget" data-sr-widget="us.season.ncaaf.scores" data-sr-season-id="46582"></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.season.ncaaf.scores', {seasonId: 57130, selectedDate: '2019-02-14'});
</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.season.ncaaf.scores', {preMatchLinks: 'default', liveMatchLinks: 'default', postMatchLinks: 'default', onItemClick: function(type, obj){alert(type + ': ' + JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>