Widgets.us.season.ncaaf.TopPerformers

A us.season.ncaaf.topPerformers displays NCAAF top performers (passing, rushing and receiving players) for each week in the regular season.


new TopPerformers(props)

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

Season Id - use regular season id only.

year number <optional>

Year prop.

week number <optional>

Week number prop. When not applied, week will be set to the last one. Also it will be set to the last one if the week is greater than the highest week number.

tableTypes string <optional>

Comma separated string of types of performers tables. When no tableTypes are written, it'll show all types of tables. Valid options are: [passing, rushing, receiving].

passingPlayers number <optional>
3

A max number of players to show in the passing table. Default is set to 3 players.

receivingPlayers number <optional>
3

A max number of players to show in the receiving table. Default is set to 3 players.

rushingPlayers number <optional>
3

A max number of players to show in the rushing table. Default is set to 3 players.

hideTitle boolean <optional>

When set to true, it hides the title of the widget.

hideDropdowns boolean <optional>

When set to true, it hides the week and season dropdowns.

border boolean <optional>

When set to true, table is displayed with 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.ncaaf.topPerformers" data-sr-season-id="62629"></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.ncaaf.topPerformers', { seasonId: 62629 });
</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.ncaaf.topPerformers', {seasonId: 62629, onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>