Widgets.us.season.ncaaf.StandingsCarousel

us.season.ncaaf.standingsCarousel shows a carousel containing standings for FBS conferences.


new StandingsCarousel(props)

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

FBS conference names. See List of NCAA divisions/conferences for possible values.

seasonId number <optional>

Season id. If empty, it gets the current season.

disableHeader bool <optional>

If set to true disables the header.

autoplay bool <optional>
true

If set to true the carousel will automatically switch the selected item periodically

splitConferences bool <optional>

If set to true, the conferences will be split into divisions where they exist, each conference division will have its own slide.

autoplaySpeed number <optional>
5000

The speed for 'autoplay' in milliseconds

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.ncaaf.standingsCarousel" 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.standingsCarousel', {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.standingsCarousel', {seasonId: 62629, onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>