Live

Live

new Live()

Source:
Properties:
Name Type Description
props object
Properties
Name Type Description
currentPage string

Indicate current page

selectedLeague object

Selected league information

selectedLeagueIndex number

Indicate selected league index in leagues array

user object

User information

leagues Array

All leagues information

placedSelections Array

Array of selections showed on My Live page

placedSelectionsTurbo Array

Array of selections Turbo showed on My Live page

cnt string

CNT path

setSelectedLeague function

Change selected league

changePage function

Change page

Members

state :object

Source:
Properties:
Name Type Description
collapsedMatches object

Key (league-match) indicate is it collapsed or expanded

Type:
  • object

Methods

componentWillUnmount() → {void}

Source:

Clear all intervals and timeouts

Returns:
Type
void

expandSelections(index, leagueId) → {void}

Source:

Toggle collapse/expand placed selections

Parameters:
Name Type Description
index number
leagueId number
Returns:
Type
void

render() → {view}

Source:
See:

Render

Returns:
Type
view

renderColapse(placedSelectionsLive, expand) → {view}

Source:

Render placed selections view

Parameters:
Name Type Description
placedSelectionsLive Array
expand boolean
Returns:
Type
view

renderLive(liveMatches) → {view}

Source:

Render live matches table view depend on current Live page

Parameters:
Name Type Description
liveMatches Array
Returns:
Type
view

renderLiveMatch(match, index, placedSelectionsLive, showLeague, league) → {view}

Source:

Render one row view

Parameters:
Name Type Description
match string
index number
placedSelectionsLive Array
showLeague boolean
league object
Returns:
Type
view

renderSelctionStatus(colorId) → {view}

Source:

Render selectionStatus

Parameters:
Name Type Description
colorId number
Returns:
Type
view

renderUpdatedColorId(colorId) → {view}

Source:

Render updated color id on full time

Parameters:
Name Type Description
colorId number
Returns:
Type
view