Top Players
us.season.ncaaf.topPlayers displays a top 5 leaderboard for a given season, with a dropdown to select by statistic.
All properties are optional. By default, the widget will display the active season.
To have specific stats for players, statType
must be set.
Parameters
Description | |||||||
---|---|---|---|---|---|---|---|
properties | |||||||
Name | Type | Argument | Default | Description | |||
seasonId | number | required | Season ID. Has priority over year and seasonType . | ||||
year | number | optional | Selected year as friendly alternative to seasonId . Used in conjunction with seasonType . | ||||
seasonType | string | optional | 'total' | Season type. Valid options are: regular , playoffs , or total . Used in conjunction with year . | |||
statType | string | optional | 'passing_yards' | Selected Stat. See below for valid options. | |||
playersLimit | number | optional | 5 | Maximum number of players to display. | |||
conference | string | optional | all conferences | The conference to display. Options are: aac , acc , big12 , b1g , cusa , indepfbs , mac , mw , pac12 , sec , sunbelt . | |||
disableDropdown | boolean | optional | If true hides the dropdown. | ||||
disableHeader | boolean | optional | If true hides the widget header. | ||||
showTitle | boolean | optional | If true turns the dropdown into a title. | ||||
hidePlayers | boolean | optional | true | If true hides player images. | |||
border | boolean | optional | If true enables a border around the widget. | ||||
onItemClick | function | optional | Function/event handler. Emits playerId on click or touch. |
Option | Description |
---|---|
passing_yards | Passing Yards |
passing_touchdowns | Passing Touchdowns |
passing_completion_percentage | Completion Percentage |
passing_interception | Interceptions Thrown |
rushing_attempts | Rushing Attempts |
rushing_yards | Rushing Yards |
rushing_touchdowns | Rushing Touchdowns |
yards_per_carry | Yards Per Carry |
points_per_game | Points Per Game |
receiving_receptions | Receptions |
receiving_yards | Receiving Yards |
receiving_touchdowns | Receiving Touchdowns |
sacks | Sacks |
interceptions | Interceptions |
interception_yards | Interception Yards |
forced_fumbles | Forced Fumbles |
tackles | Tackles |
Examples
<div class="sr-widget" data-sr-widget="us.season.ncaaf.topPlayers" 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.topPlayers', {year: 2017, seasonType: 'playoffs', statType: 'sacks'});
</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.topPlayers', {seasonId: 46582, statType: 'passing_completion_percentage', onItemClick: function(type, obj){alert('playerId: ' + obj.playerId);}});
</script>
<div id="sr-widget"></div>
Updated 24 days ago