Widgets.us.common.nfl.Transactions

us.common.nfl.transactions displays season, recent, team, or player transactions.

Season's transactions is the default mode. If none of the seasonId, recent, teamId or playerId props are set then the current season transactions are automatically selected for display, otherwise season transactions of the season identified by the given seasonId are displayed.

To display recent transactions the parameter recent must be set to `true`.

To display team's transactions set the parameter uniqueTeamId. If the parameter seasonId is set then the team's transactions of the given season are displayed, otherwise recent team's transactions are displayed.

To display player's transactions set the parameter playerId.


new Transactions(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
seasonId number <optional>

Season Id.

recent boolean <optional>

When set to true, displays recent transactions in a season.

teamId number <optional>

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).

enableMonthSwitcher boolean <optional>

When set to true, replaces the month dropdown with month switcher.

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.nfl.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.nfl.transactions', {seasonId: 2019});
</script>