Top Players
us.season.ncaab.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 | 'points' | Selected Stat. See below for valid options. | |||
playersLimit |
number | optional | 5 | Maximum number of players to display. | |||
division |
string | optional | dI | The division to display. Click here to see a list of valid options. | |||
conference |
string | optional | all conferences | The conference to display. Click here to see a list of valid conferences. | |||
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. |
Valid options for statType
:
- points
- rebounds
- assists
- blocks
- steals
- turnovers
- three_points_made
- field_goals_made
- points_per_game
- rebounds_per_game
- assists_per_game
- steals_per_game
- field_goals_made_per_game
- blocks_per_game
- field_goals_percentage
- three_points_percentage
Examples
<div class="sr-widget" data-sr-widget="us.season.ncaab.topPlayers" data-sr-season-id="65549"></div>
<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.ncaab.topPlayers', {year: 2021, seasonType: 'regular', statType: 'rebounds'});
</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.ncaab.topPlayers', {seasonId: 65549, statType: 'points', onItemClick: function(type, obj){alert('playerId: ' + obj.playerId);}});
</script>
<div id="sr-widget"></div>
Updated over 1 year ago