Widgets.us.season.ncaaf.PlayersStats

A us.season.ncaaf.playersStats displays NCAAF seasonal players statistics.

All the properties are optional. By default renders player statistics table for the active season.


new PlayersStats(props)

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

Season Id.

category string <optional>
'defense'

Statistics mode, one of: defense, kicking, passing, punting, receiving, punt_returns, kickoff_returns, rushing.

pageLength number <optional>
50

How many players display per page.

conference string <optional>

Filter teams by conference. Only FBS conferences are supported. See List of NCAA divisions/conferences for possible values.

uniqueTeamId number <optional>

Only display players of the given team. The conferences and teams drop-downs are not displayed.

seasonType string <optional>
'regular'

Season type. Valid options are: regular, playoffs.

border boolean <optional>

When set to true, table is displayed with border.

qualifiesAsLeagueLeader boolean <optional>
true

When set to true, enables statistical minimums to qualify a player for inclusion in a statistical category.

disableTitle boolean <optional>

When set to true, hides widget title.

hideFilters boolean <optional>

When set to true, hides all filters / dropdown.

defenseColumns string <optional>

Comma separated string of hitting table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, defense_tackles, defense_assisted_tackles, defense_sacks, defense_sack_yards, fumbles_forced, defense_interception, defense_interception_yards, defense_tackles_for_loss.

kickingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, kickoffs_total, kickoffs_touchbacks_percent, kickoffs_net_yards, kickoffs_avg_yards, specteam_field_goal, specteam_field_goal_attempt, specteam_field_goal_percent.

passingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, passing_completions, passing_attempts, passing_completions_percent, passing_touchdowns, passing_interception.

puntingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, punts_total, punts_gross_yards, punts_gross_yards_avg, punts_blocked, punts_touchbacks.

receivingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, receiving_receptions, receiving_yards, receiving_touchdowns, receiving_yards_per_reception.

puntReturnsColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, punts_returned, punt_return_yards, punt_return_yards_avg, punt_return_fair_catches, punt_return_touchdowns.

kickoffReturnsColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, kickoffs_returns, kickoffs_return_yards, kickoffs_return_yards_avg, kick_return_fair_catches, kick_return_touchdowns.

rushingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, rushing_attempts, rushing_yards, rushing_touchdowns, rushing_touchdowns_percent.

defenseSortIdx string <optional>

Overrides hitting table default sort statistics column index. 1, 2, 3...

kickingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

passingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

puntingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

receivingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

puntReturnsSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

kickoffReturnsSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

rushingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

onItemClick function <optional>

Function/event handler. Emits playerId, uniqueTeamId, seasonId, uniqueTournamentId on table row click or touch.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.ncaaf.playersstats"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/uscommon/widgetloader" data-sr-language="en_us" async></script>

JS/Programmatic

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.ncaaf.playersStats', {});
</script>

JS/Example of using Event Handler

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.ncaaf.playersStats', {onItemClick: function(type, obj){alert('playerId: ' + playerId + ', uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>