Player Game Logs
us.player.ncaab.gameLogs shows game statistics for a given player in a season.
For the widget to render you must provide a valid playerId
and seasonId
.
Parameters
Name | Type | Description | ||||
---|---|---|---|---|---|---|
props |
object | properties | ||||
Name | Type | Argument | Description | |||
playerId |
number | required | Player ID | |||
seasonId |
number | required | Season ID | |||
seasonType |
string | optional | Season Type: regular / playoffs |
|||
sortIdx |
string | optional | Overrides table default sort column index. 1, 2, 3..; Usually used with sortDirection . |
|||
sortDirection |
string | optional | Overrides table default sort direction. Valid options are asc and desc . Usually used with sortIdx . |
|||
enableLimit |
boolean | optional | Switches into limited mode. If there are more than 10 games, it shows only 10 games with an option to extend the games view. Games are sorted from newest on. | |||
border |
boolean | optional | If true enables a border around the widget. |
|||
onItemClick |
boolean | Function/event handler. Emits matchId and other props on table row click or touch. |
Examples
<div class="sr-widget" data-sr-widget="us.player.ncaab.gameLogs" data-sr-player-id="1176872" data-sr-season-id="56011"></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.player.ncaab.gameLogs', {playerId: '1176872', seasonId: 56011});
</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.player.ncaab.gameLogs', {playerId: '1176872', seasonId: 56011, onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>
match:{"matchId":15858244,"seasonId":56011,"tournamentId":698,"uniqueTournamentId":648,"realCategoryId":15,"sportId":2,"awayTeamUid":66378,"homeTeamUid":34614}
Updated over 1 year ago