Widgets.us.season.ncaaf.TopTeams

us.season.ncaaf.topTeams shows list of top teams for selected category.

For the widget to render you need to provide seasonId.


new TopTeams(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
seasonId number <optional>

Season id. Only use this if you would like to use exact seasonId, otherwise set year and season type.

year year <optional>

Year. Current year is used by default.

seasonType string <optional>
'regular'

regular, playoffs (Bowl Games) or total

conference string <optional>

If set only display teams from selected conference. Currently supported: 'aac', 'acc', 'big12', 'b1g', 'cusa', 'independent', 'mac', 'mwc', 'sec', 'sbelt', 'pac12'

statType string <optional>
'points'

Selected stat. Can be points, total_yards_yards, passing_yards, passing_attempts, passing_interception, rushing_yards, rushing_attempts, rushing_touchdowns, receiving_receptions, receiving_touchdowns, turnovers, punts_total, penalties_total, penalties_yards, defense_tackles, defense_tackles_for_loss, defense_sacks, defense_interception, possession_time, opponents_points, opponents_passing_yards, opponents_passing_touchdowns, opponents_rushing_yards, opponents_rushing_touchdowns.

disableHeader boolean <optional>

If true hides header.

disableStatsDropdown boolean <optional>

If true hides statistic type dropdown.

disableConferenceDropdown boolean <optional>

If true hides conference dropdown.

teamsLimit number <optional>
5

Limits list length.

border boolean <optional>

If true enables a border around the widget.

onItemClick function <optional>

Function/event handler. Emits event object on team row click or touch.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.ncaaf.topTeams" data-sr-season-id="57130"></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.season.ncaaf.topTeams', { year: 2018 });
</script>
<div id="sr-widget"></div>

JS/Example of using Event Handler

<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.season.ncaaf.topTeams', {year: 2018, statType: 'defense_sacks', teamsLimit: '10', onItemClick: function(target, data) { console.log(target, data); }});
</script>
<div id="sr-widget"></div>