![](img/betInsights.png)
Parameters
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
props |
object |
<required> |
||
matchId |
number |
<required> |
Match ID. |
|
widgetTitle |
string | 'Bet Insights' | Name in the header and on the button. |
|
widgetIcon |
string | false | URL for custom icon. |
||
integration |
'inline' | 'button' | 'inline' | When set to |
|
isMobile |
boolean | false | When set to |
|
modalPosition |
'left' | 'right' | 'bottom' | 'left' | Set location of modal pop-up relative to button (only applicable with |
|
modalMaxHeight |
number | string | Set maximum height of card list. Allowed units: |
||
cardsLayout |
'horizontal' | 'vertical' | 'horizontal' | Set how cards are displayed (only applicable with |
|
cardVariant |
'default' | 'defaultIcon' | 'compact' | 'button' | 'buttonFooter' | 'default' | Set the style of the card. |
|
outcomeOrder |
'top' | 'bottom' | 'bottom' | Set the outcome display position (only applicable with |
|
outcomeButtonPosition |
'top' | 'bottom' | 'top' | Set where market/outcome button is positioned in cards (not applicable with |
|
ignoreAdapterValues |
boolean | false | When set to |
|
capitalizeMarketNameAndOutput |
boolean | false | When set to |
|
disableWidgetHeader |
boolean | false | When set to |
|
enableCollapse |
boolean | true | When set to |
|
startCollapsed |
boolean | false | When set to |
|
onItemClick |
OnItemClick Widgets.BetInsights.Integration.OnItemClick | Set a callback to run when the outcome is clicked. For more information check OnItemClick. |
Example
<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('registerAdapter', '{ADAPTER_NAME}');
SIR('addWidget', '#sr-widget', 'betInsights', {
matchId: 10,
onItemClick: function(target, data) {
console.log(target, data);
}
});
</script>
<div id="sr-widget"></div>