Match Preview has an option to change default order of its tabs by passing tabs
property to SIR
function. This option also contols which tabs are enabled.
tabs
property is an array of strings. For example:
tabs: { "1": ['matchInfo', 'standings', 'leaders', 'lineups', 'cup', 'playoffs', 'teamStats']}
Here is the list for all sports tabs:
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', '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
For every sport you can:
- re-order tabs by changing order of strings in array,
- disable tabs by removing specific strings from array.