App

App

new App()

Source:
Properties:
Name Type Description
props object
Properties
Name Type Description
isPMOpen boolean

Indicate is Push Menue on left side is open

currentPage string

Indicate current page

numberOfBets number

Number of placed bets showed in bottom menu

haveLiveMatches boolean

Indicate is LIVE round is in progress

user object

User informations

bonus object

Bonus informations

isAccountOpen boolean

Indicate is account from Header is open

isLoading boolean

Indicate is loader active

destinations object

Destination informations

leagues object

Leagues informations

numberOfSelections number

Number of selected odds

selectedLeague object

Selected league informations

cnt string

CNT path for SVG icons

gameType string

Classic/Turbo

init function

Get inital data from API

logout function

Logout user

getBalanceAndBonus function

API call to refresh balance

togglePM function

Toogle push menu on left side

changePage function

Action to change page

toggleBetslip function

Toggle betslip modal

setSelectedLeague function

Change selected league

toggleAccount function

Toggle account menu from the header

goToLogin function

Change page to Login page

goToMyAccountMenu function

Change page to My account menu section

Members

handleScrollDiv :Element

Source:
Type:
  • Element

startPos :number

Source:
Type:
  • number

state :object

Source:
Properties:
Name Type Description
fixedTopBar boolean
Type:
  • object

Methods

checkBetCountSchedule()

Source:

Check for betcount schedule

componentDidMount() → {void}

Source:

Call init API

Returns:
Type
void

componentDidUpdate(prevProps) → {void}

Source:

Add handler for scroll Event Listener

Parameters:
Name Type Description
prevProps object
Returns:
Type
void

componentWillUnmount() → {void}

Source:

Remove handler for scroll Event Listener

Returns:
Type
void

handleFixTopBar() → {void}

Source:

Handler on scroll Event Listener on TopBar

Returns:
Type
void

render() → {view}

Source:
See:

Render

Returns:
Type
view

setAppOutOfFocus(e)

Source:

Set app is not in focus

Parameters:
Name Type Description
e object

wakeUpApp(e)

Source:

Wake up app when gets focus back

Parameters:
Name Type Description
e object