Parameters
Name |
Type |
Description |
props |
object
|
Properties
Name |
Type |
Argument |
Default |
Description |
uniqueTournamentId |
number
|
|
|
Unique Tournament Id.
|
seasonId |
number
|
|
|
Season Id.
|
recent |
boolean
|
<optional>
|
|
When set to true , displays recent transactions in a season.
|
uniqueTeamId |
number
|
<optional>
|
|
Unique Team Id.
|
playerId |
number
|
<optional>
|
|
Player Id.
|
pageSize |
number
|
<optional>
|
50
|
When set it enables table pagination and defines the number of rows per page. Defaults to 50.
|
pageIndex |
number
|
<optional>
|
0
|
When table pagination is enabled it sets the 0-based index of the table page to display. Defaults to 0.
|
enableDayFilter |
boolean
|
<optional>
|
|
When set to true , enables day filter (and disables month filtering).
|
filterMonthNumber |
number
|
<optional>
|
|
Used for season transactions to filter transaction by month. Valid values are 1 to 12, representing month sequence.
|
filterMonthNumber |
number
|
<optional>
|
|
Used for season transactions to filter transaction by month. Valid values are 1 to 12, representing month sequence.
|
disableHeader |
boolean
|
<optional>
|
|
When set to true , hides widget header.
|
disableMonthDropdown |
boolean
|
<optional>
|
|
When set to true , hides month dropdown.
|
border |
boolean
|
<optional>
|
|
When set to true , draws a border around the widget.
|
onItemClick |
function
|
<optional>
|
|
Function/event handler, emits playerId on click or touch.
|
|
Examples
HTML/Declarative
<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/uscommon/widgetloader" data-sr-language="en_us" async></script>
JS/Programmatic
<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.common.transactions', {uniqueTournamentId: 109});
</script>