Skip to main content Open Assistant Open Assistant Match Preview Custom Tabs Order | Engagement Tools | API Hub
Engagement Tools Match Preview Custom Tabs Order Widgets, Engagement Tools, BET
Last updated 3 months ago
Is this site helpful?
Match Preview has an option to change the default order of its tabs by passing the tabs property to the SIR function. This option also controls which tabs are enabled.
The tabs property is an array of strings. For example:
javascript
tabs : { "1" : [ 'matchInfo' , 'standings' , 'leaders' , 'lineups' , 'cup' , 'playoffs' , 'teamStats' ] }
Here is the list for all sports tabs:
javascript
1 : [ 'matchInfo' , 'standings' , 'leaders' , 'lineups' , 'cup' , 'playoffs' , 'teamStats' ] , // soccer
2 : [ 'matchInfo' , 'standings' , 'leaders' , 'lineups' , 'teamStats' , 'cup' , 'playoffs' ] , // basket
3 : [ 'matchInfo' , 'standings' , 'leaders' , 'lineups' , 'teamStats' , 'cup' , 'playoffs' ] , // baseball
4 : [ 'matchInfo' , 'standings' , 'leaders' , 'lineups'
For every sport you can:
Re-order tabs by changing the order of strings in the array.
Disable tabs by removing specific strings from the array.
,
'teamStats'
,
'cup'
,
'playoffs'
]
,
// hockey
5 : [ 'matchInfo' , 'playerProfiles' , 'standings' ] , // tennis
6 : [ 'matchInfo' , 'standings' , 'lineups' , 'teamStats' , 'cup' ] , // handball
12 : [ 'matchInfo' , 'standings' , 'lineups' , 'teamStats' , 'cup' ] , // rugby
16 : [ 'matchInfo' , 'standings' , 'leaders' , 'lineups' , 'teamstats' , 'playoffs' ] , // football
19 : [ 'matchInfo' , 'standings' , 'ranking' , 'playerStats' , 'cup' ] , // snooker
20 : [ 'matchInfo' , 'standings' , 'teamStats' , 'cup' ] , // table tennis
22 : [ 'matchInfo' , 'standings' , 'ranking' , 'teamStats' , 'cup' ] , // darts
23 : [ 'matchInfo' , 'standings' , 'teamStats' , 'cup' ] , // volleyball
29 : [ 'matchInfo' , 'standings' , 'lineups' , 'teamStats' , 'cup' ] , // futsal
31 : [ 'matchInfo' , 'standings' , 'ranking' , 'teamStats' , 'cup' ] , // badminton
34 : [ 'matchInfo' , 'standings' , 'teamStats' , 'cup' ] , // beach volleyball