Widgets.us.player.ncaaf.GameLogs

us.player.ncaaf.gameLogs shows per game statistics for the given player in a season. If a season is not provided then the current season is used.


new GameLogs(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Description
playerId number

Player id.

seasonId number <optional>

Season id of regular sequence. If not provided then the current season is used.

seasonType string <optional>

Selects season type. Can be regular and playoffs.

sortIdx number <optional>

Overrides table default sort column index: 1, 2, 3...; Usually used with sortDirection.

sortDirection string <optional>

Overrides table column 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>

Displays border.

onItemClick function <optional>

Function/event handler. Emits matchId and other props on table row click or touch. See example below.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.player.ncaaf.gameLogs" data-sr-player-id="1414443" data-sr-season-id="62629"></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.player.ncaaf.gameLogs', {playerId: '1414443', seasonId: 62629});
</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.player.ncaaf.gameLogs', {playerId: '1414443', seasonId: 62629, onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>

Examples of onItemClick targets and emitted props

match:{"matchId":23634887,"seasonId":75093,"tournamentId":85,"uniqueTournamentId":27653,"realCategoryId":43,"sportId":16,"awayTeamUid":4352,"homeTeamUid":4338}