Betting Entertainment Tools

Tournament Preview

A tournament.preview

Parameters
Name Type Attributes Default Description
props object <required>
uniqueTournamentId number <required>

Unique Tournament ID

matchId number <required>

Match ID

seasonId number <required>

Season ID

isMobile boolean false

Mobile view

disableEventTicker boolean false

Remove event ticker

openMoreStatsInNewTab boolean false

Open more stats on S5 statistics centre page in new tab or current tab.

isExpanded boolean false

Default state of widget is expanded.

disableMoreStats boolean false

Remove "more" link button with S5 statistics link.

disableCompare boolean false

Removes abbility to compare one tournament with another.

onItemClick function

Function/Event handler, emits matchId on click or touch.

branding object

Branding options and widget customization. More info in this Guide.

s5ClientAlias string

Statistics client alias override.

tabs array.<object>

Definition for tabs that are displayed. See this Guide for valid values and structure.

disableTabs boolean

Show or hide tabs

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="tournament.preview" data-sr-unique-tournament-id="18"></div>
<script type="application/javascript" src="https://widgets.sir.sportradar.com/sportradar/widgetloader" 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.sir.sportradar.com/sportradar/widgetloader","SIR", {
        language: 'en'
    });
    SIR('addWidget', '#sr-widget', 'tournament.preview', {uniqueTournamentId: 18});
</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.sir.sportradar.com/sportradar/widgetloader","SIR", {
        language: 'en'
    });
    SIR('addWidget', '#sr-widget', 'tournament.preview', { uniqueTournamentId: 18 });
</script>
<div id="sr-widget"></div>