Widgets.us.season.nfl.Standings

us.season.nfl.standings is a standings table.

All the properties are optional. By default, widget will render player standings table for the active season.

props.columns options descriptions

optiondescription
wWins
lLosses
tTies
pctWin Percentage
hHome
rRoad
cConference
pfPoints For
paPoints Against
pdPoint Differential
dDivision
sosStrength Of Schedule
sovStrength of Victory
sStreak

new Standings(props)

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

Season id (NFL year).

border boolean <optional>

Displays border.

disableHeader boolean <optional>

When set to true, hides widget header.

disableTitle boolean <optional>

When set to true, hides widget title.

showSeasonSelector boolean <optional>
true

Displays season selector dropdown.

showSeasonYearTitle boolean <optional>

Adds season year to the title.

transformTeamId boolean <optional>

If true, onItemCLick event handler returns team id in "sd" format/origin instead of fishnet.

columns string <optional>

Comma separated string of column keys. Used for picking picking fewer columns and different order. Valid options are w, l, t, pct, h, r, c, pf, pa, pd, d, sos, sov, s.

onItemClick function <optional>

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

Examples

HTML/Declarative

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

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.nfl.standings', {seasonId: 2017, onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>