Methods
addButton(e) → {void}
Change stake value by clicking on stake buttons
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event |
Returns:
- Type
- void
calcForStakes(stake, bonusOddMax, bonusOddMin, numOfBets, manager, minStake, isArray) → {object}
Calculate settings for selected bet type
Parameters:
| Name | Type | Description |
|---|---|---|
stake |
number | Array | |
bonusOddMax |
number | Array | |
bonusOddMin |
number | Array | |
numOfBets |
number | null | Array | |
manager |
object | null | |
minStake |
number | |
isArray |
boolean |
Returns:
Settings (total stake, potential win (min/max), bonus amount)
- Type
- object
changeBetType(betTypeopt, isDeletingopt) → {void}
Change tab from bottom navigation
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
betType |
string |
<optional> |
|
isDeleting |
boolean |
<optional> |
Returns:
- Type
- void
changeStakeInput(e) → {void}
Change stake value inserted in input
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event |
Returns:
- Type
- void
checkError() → {boolean}
Validate inputs fields before placebet action
Returns:
- Type
- boolean
checkMaximumWinningPayoutErr(potWinMax) → {boolean}
Validate maximum winning payout before placebet
Parameters:
| Name | Type | Description |
|---|---|---|
potWinMax |
number |
Returns:
- Type
- boolean
checkMaxStakeError() → {boolean}
Validate max stakes before placebet
Returns:
- Type
- boolean
checkMinStakeError() → {boolean}
Validate min stakes before placebet
Returns:
- Type
- boolean
clearAllSelections() → {void}
Clear all selections
Returns:
- Type
- void
clearAllTimeouts() → {void}
Clear all timeouts
Returns:
- Type
- void
clearSelection(index) → {void}
Clear selected row
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number |
Returns:
- Type
- void
clearStake() → {void}
Change stake value to 0
Returns:
- Type
- void
closeError() → {void}
Close error modal
Returns:
- Type
- void
closeSlipConfirmation() → {void}
Close confirmation modal
Returns:
- Type
- void
getFreeBetsAmount() → {Array}
Return first 5 bets amount
Returns:
- Type
- Array
initSplitBetTab(num, numOfSplitBets) → {void}
Initialize split bet tab
Parameters:
| Name | Type | Description |
|---|---|---|
num |
number | |
numOfSplitBets |
number |
Returns:
- Type
- void
initSystemTab(systemManager, isDeleting) → {object}
Initialize combination bet tab
Parameters:
| Name | Type | Description |
|---|---|---|
systemManager |
object | |
isDeleting |
boolean |
Returns:
Odds (min/max), potential win (min/max)
- Type
- object
openFreeBetType() → {void}
Select free bet dtype from bottom navigation
Returns:
- Type
- void
openOtherTypes() → {void}
Select combination bet type from bottom navigation (Can be combinations or split bet)
Returns:
- Type
- void
parsePlacebetStake() → {object}
Parse stake string for placebet API
Returns:
Stake, bet type, and free bet id if it is free bet
- Type
- object
placebet() → {void}
Place bet action
Returns:
- Type
- void
selectMultipleBet() → {void}
Select multiple bet type from bottom navigation
Returns:
- Type
- void
selectSingleBet() → {void}
Select single bet type from bottom navigation
Returns:
- Type
- void
setInputInFocus(index) → {void}
Set input in focus by input index
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number |
Returns:
- Type
- void
setInputOutOfFocus(e) → {void}
Set input out of focus and hide buttons
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event |
Returns:
- Type
- void
setupPlacebet(singleStakes, combi, multiple, other) → {object}
Setup placebet settings calculate total stake, bonus, potential win (min/max)
Parameters:
| Name | Type | Description |
|---|---|---|
singleStakes |
Array | |
combi |
Array | |
multiple |
number | |
other |
number |
Returns:
Settings (total stake, potential win (min/max), bonus amount)
- Type
- object
toggleBetslipModal() → {void}
Toggle betslip modal
Returns:
- Type
- void
updateCalc() → {void}
Change stake value
Returns:
- Type
- void
updateStakeValue(val) → {void}
Change stake value
Parameters:
| Name | Type | Description |
|---|---|---|
val |
numer |
Returns:
- Type
- void