Widget Docs
Coverage MatrixDocumentationRelease LogLog InContact Us

Live Game Carousel

us.match.ncaab.liveMatchCarousel displays a scrolling carousel of live or upcoming NCAA Men's Basketball games.

Parameters

Name Type Description
props object properties
Name Type Argument Default Description
uniqueTrounamentId string optional all games With this prop empty, both regular season and playoff games are displayed. Possible values are: 648 - regular season, 28370 - NCAA tournament, 24135 - NIT tournament, 28372 - CBI tournament, 28374 - CIT tournament, 30190 - all playoff games.
division string optional 'dI' The division to display. A list of valid division names can be found here.
conference string optional The conference to display. A list of valid conference names can be found here.
limit number optional 10 Max number of games shown.
autoplay boolean optional 'true' If false stops carousel autoplay.
autoplaySpeed number optional 5000 Carousel autoplay speed in ms.
showDate boolean optional If true displays date alongside game time.
border boolean optional If true enables a border around the widget.
onMatchesSet function optional Function/event handler. Emits matchIds array on team click or touch.
onItemClick function optional Function/click handler. Emits target and data on click or touch.

Examples

<div class="sr-widget" data-sr-widget="us.match.ncaab.liveMatchCarousel"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>

<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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.match.ncaab.liveMatchCarousel');
</script>
<div id="sr-widget"></div>

<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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.match.ncaab.liveMatchCarousel', { onMatchesSet: function(matchIds) { console.log('matchIds: ' + matchIds.join(', ')); }});
</script>
<div id="sr-widget"></div>

<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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.match.ncaab.liveMatchCarousel', { onItemClick: function(target, data) { console.log(target, data); }});
</script>
<div id="sr-widget"></div>