props |
object
|
Properties
Name |
Type |
Argument |
Default |
Description |
matchId |
number
|
|
|
Match id.
|
showDate |
boolean
|
<optional>
|
|
If true shows scheduled date besides time (pre-match only).
|
isCollapsed |
boolean
|
<optional>
|
'true'
|
If false collapses collapsible content (i.e. game information).
|
showOdds |
boolean
|
<optional>
|
'true'
|
If false hides odds (pre-match only).
|
disableHeader |
boolean
|
<optional>
|
|
If true hides header.
|
disableGameInfo |
boolean
|
<optional>
|
|
If true hides collapsible content (i.e. game information).
|
disableGameInfoXSmall |
boolean
|
<optional>
|
|
If true hides collapsible content (i.e. game information) on X-Small responsive breakpoint (<321px).
|
disableAttendance |
boolean
|
<optional>
|
|
If true hides attendance content.
|
disableTeamClick |
boolean
|
<optional>
|
|
If true disables onItemClick handler for teams.
|
disablePlayerClick |
boolean
|
<optional>
|
|
If true disables onItemClick handler for players (i.e. team leaders under game information).
|
enableMatchClick |
boolean
|
<optional>
|
|
If true whole widget triggers match target event on onItemClick; all other targets gets disabled.
|
preMatchLinks |
string
|
<optional>
|
|
Comma separated string of link keys for pre-match. Can be undefined , default , preview , boxscore , gametracker , recap , lineups , matchstats . Entering default is same as entering 'preview' .
|
liveMatchLinks |
string
|
<optional>
|
|
Comma separated string of link keys for live-match. Can be undefined , default , preview , boxscore , gametracker , recap , lineups , matchstats . Entering default is same as entering 'boxscore, gametracker' .
|
postMatchLinks |
string
|
<optional>
|
|
Comma separated string of link keys for post-match. Can be undefined , default , preview , boxscore , gametracker , recap , lineups , matchstats . Entering default is same as entering 'boxscore, recap' .
|
border |
boolean
|
<optional>
|
'true'
|
If false hides a border around the widget.
|
onItemClick |
function
|
<optional>
|
|
Function/event handler. By default, the widget has two click target areas: team and player . The player targets appear in Game information section depending on match status.
With preMatchLinks , liveMatchLinks and/or postMatchLinks set the Score widget can get additional targets: preview , boxscore , gametracker , recap , lineups , matchstats links.
When enableMatchClick set to true the whole Score widget becomes a match target and all other targets gets disabled.
All targets emit the following match props on click or touch: matchId , sportId , realCategoryId , seasonId , tournamentId , uniqueTournamentId , awayTeamUid , homeTeamUid , matchStatus .
Team target adds uniqueTeamId , player target adds playerId . Valid matchStatus values are: pre , live , post .
Examples:
- team:{"matchId":25328014,"matchStatus":"post","uniqueTeamId":5930,"seasonId":79507,"tournamentId":25,"uniqueTournamentId":109,"realCategoryId":16,"sportId":3,"awayTeamUid":5930,"homeTeamUid":3635},
- player:{"matchId":25328014,"matchStatus":"post","uniqueTeamId":5930,"playerId":842773,"seasonId":79507,"tournamentId":25,"uniqueTournamentId":109,"realCategoryId":16,"sportId":3,"awayTeamUid":5930,"homeTeamUid":3635},
- recap: {"matchId":25328014,"seasonId":79507,"tournamentId":25,"uniqueTournamentId":109,"realCategoryId":16,"sportId":3,"awayTeamUid":5930,"homeTeamUid":3635,"matchStatus":"post"},
- match: {"matchId":25328014,"seasonId":79507,"tournamentId":25,"uniqueTournamentId":109,"realCategoryId":16,"sportId":3,"awayTeamUid":5930,"homeTeamUid":3635,"matchStatus":"post"}.
|
|