Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Transactions

us.common.Transactions displays transactions by season, team, or player.

To display recent transactions, you must use a valid uniqueTournamentId, and recent must be set to 'true'.

To display seasonal transactions, either the uniqueTournamentId or the seasonId parameter must be set. If only uniqueTournamentId is provided, the current season is displayed.

To display team transactions, use the parameter uniqueTeamId. If seasonId is set, the team transactions of the given season are displayed. If only uniqueTeamId is provided, the most recent team transactions are displayed.

To display a player's transactions, use the parameter playerId.

Parameters

Name Type Description
props object properties
Name Type Argument Description
uniqueTournamentId number optional Unique tournament ID
recent boolean optional When set to true displays the recent transactions in a season.
seasonId number optional Season ID
uniqueTeamId number optional Unique team ID
playerId number optional Player ID
border boolean optional When set to true draws a border around the widget.
pageSize number optional Enables table pagination and defines the number of rows per page.
pageIndex number optional Sets the 0-based index of the table page to display. Default is 0.

Examples

<div class="sr-widget" data-sr-widget="us.common.transactions" data-sr-unique-tournament-id="109"></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.common.transactions', {uniqueTournamentId: 109});
</script>
<div id="sr-widget"></div>