Widgets.us.season.ncaab.TeamRanks

us.season.ncaab.teamRanks is a Team Ranks table, divided by team offense and team defense stats.

Property teamUid is required, all other properties are optional


new TeamRanks(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
teamUid number

Unique team id

seasonId number <optional>

Season id.

rankType string <optional>
`division`

A choice between league or conference ranks of a team. Possible options: division, conference.

seasonType string <optional>
`regular`

Season type. Possible options: total, regular, playoffs.

allowedOffenseStats string <optional>

Comma seperated offense stats you choose to see. Possible options: points_per_game, field_goals_made_per_game, field_goals_attempted_per_game, field_goals_percentage, three_pointers_made_per_game, three_pointers_attempted_per_game, three_points_percentage, free_throws_made_per_game, free_throws_attempted_per_game, free_throws_percentage, rebounds_per_game, offensive_rebounds_per_game, defensive_rebounds_per_game, assists_per_game, steals_per_game, blocks_per_game, turnovers_per_game

allowedDefenseStats string <optional>

Comma seperated defense stats you choose to see. Possible options: opponents_points_per_game, opponents_field_goals_made_per_game, opponents_field_goals_attempted_per_game, opponents_field_goals_percentage, opponents_three_pointers_made_per_game, opponents_three_pointers_attempted_per_game, opponents_three_points_percentage, opponents_free_throws_made_per_game, opponents_free_throws_attempted_per_game, opponents_rebounds_per_game, opponents_offensive_rebounds_per_game, opponents_defensive_rebounds_per_game, opponents_assists_per_game, opponents_steals_per_game, opponents_blocks_per_game, opponents_turnovers_per_game

disableHeader boolean <optional>

If true hides widget header.

border boolean <optional>

If true enables a border around the widget.

onItemClick function <optional>

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

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.ncaab.teamRanks" data-sr-team-uid="86698" ></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.teamRanks', {teamUid: 86698});
</script>
<div id="sr-widget"></div>