Widgets.us.season.nfl.StandingsSlim

us.season.nfl.standingsSlim is a lightweight version standings table.

By default, without any input props, widget renders AFC active season standings.

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 StandingsSlim(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Description
seasonId number

Season id (NFL year).

division boolean <optional>

Select a division to display afc, nfc, afc_north, afc_east, afc_west, afc_south, nfc_north, nfc_east, nfc_west, nfc_south`.

teamId string <optional>

Displays a division to which the entered team belongs.

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.

disableHeader boolean <optional>

Hide widget header

enableDropdown boolean <optional>

If true enables division dropdown selector. Unless uniqueTeamId is set.

border boolean <optional>

Displays border

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