Widgets.us.season.soccer.Standings

us.season.soccer.standings is a standings table.

By default, without any input props, widget renders Major League Soccer active season standings table.


new Standings(props)

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

Season id. Denotes unique tournament id!

uniqueTournamentId number <optional>
242

Select unique tournament id. Valid options are:

utidname
242Major League Soccer
17Premier League
35Bundesliga
23Serie A
8La Liga
33Ligue 1
7Champions League
If seasonId prop is set, uniqueTournamentId prop is ignored.

type string <optional>
'overall'

Displays standing as overall or home/away. Possible options: overall, home, away.

mode string <optional>
'conference'

Separates the teams in standings into groups. Possible options: league, conference. Applicable for Major League Soccer only.

border boolean <optional>

If true enables a border around the widget.

disableHeader boolean <optional>

When set to true, hides widget header.

disableTitle boolean <optional>

When set to true, hides widget title.

showSeasonSelector boolean <optional>
'true'

If false hides season dropdown.

showSeasonYearTitle boolean <optional>

Adds season year to the title.

disableDropdown boolean <optional>

If true hides tournament dropdown.

enableTeamColors boolean <optional>

Team colors switch.

onItemClick function <optional>

Function/event handler. Emits uniqueTeamId on click or touch.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.soccer.standings" data-sr-season-id="62475" ></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.season.soccer.standings', {uniqueTournamentId: 8});
</script>
<div id="sr-widget"></div>

JS/Example of using Event Handler

<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.season.soccer.standings', {seasonId: 50277, type: 'away', mode: 'league', onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>