Widgets.us.season.ncaab.TeamsStats

A us.season.ncaab.teamsStats displays NCAAB seasonal teams statistics table.

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


new TeamsStats(props)

props.Columns options descriptions

optiondescription
ptsPoints
rebRebounds
astAssists
stlSteals
blkBlocks
toTurnovers
pfPersonal Fouls
fgmField Goals Made
fgaField Goals Attempted
fgpField Goals %
ftmFree Throws Made
ftaFree Throws Attempted
ftpFree Throws %
3pmThree Points Made
3paThree Points Attempted
3ppThree Points %

props.conference keyword descriptions

conference keywordconference name
aecAmerica East Conference
aacAmerican Athletic Conference
a10Atlantic 10 Conference
accAtlantic Coast Conference
asunAtlantic Sun Conference
big12Big 12 Conference
becBig East Conference
bskyBig Sky Conference
bscBig South Conference
b1gBig Ten Conference
bwcBig West Conference
caaColonial Athletic Association
cusaConference USA
gwcGreat West Conference
horizonHorizon League
indepIndependents
ivyIvy League
maacMetro Atlantic Athletic Conference
macMid-American Conference Overall
meacMid-Eastern Athletic Conference
mvcMissouri Valley Conference
mwMountain West Conference
necNortheast Conference
ovcOhio Valley Conference
pac12Pacific-12 Conference
patriotPatriot League
secSoutheastern Conference
southernSouthern Conference
southlandSouthland Conference
swacSouthwest Athletic Conference
summitSummit League
sunbeltSun Belt Conference
wccWest Coast Conference
wacWestern Athletic Conference
Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
seasonId number <optional>

Season Id.

year number <optional>

The year when season started.

seasonType string <optional>
'regular'

Season type: total / regular / postseason

mode string <optional>
'totals'

Initial mode: totals / perGame

conference string <optional>

Initially selected conference, a keyword from the following list: aec, aac, a10, acc, asun, big12, bec, bsky, bsc, b1g, bwc, caac, cusa, gwc, horizon, indep, ivy, maac, mac, meac, mvc, mwc, nec, ovc, pac12, patriot, sec, southern, southland, swac, summit, sunbelt, wcc, wac. For details see List of NCAA divisions/conferences, section NCAAB, Division I.

disableTitle boolean <optional>

When set to true, hides widget title.

hideFilters boolean <optional>

When set to true, hides all filters / dropdown.

columns string <optional>

Comma separated string of table statistics column keys. Used for picking picking fewer columns and different order. Valid options are pts, reb, ast, stl, blk, to, pf, fgm, fga, fgp, ftm, fta, ftp, 3pm, 3pa, 3pp.

sortIdx string <optional>

Overrides table default sort statistics column index. 1, 2, 3...

pageLength number <optional>
50

How many teams display per page.

border boolean <optional>

When set to true, table is displayed with border.

onItemClick function <optional>

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

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.ncaab.teamsStats"></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.ncaab.teamsStats', {});
</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.ncaab.teamsStats', {onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>