Members
state :object
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
isInfoOpen |
boolean | Indicate is informations about bonus leveling is open |
time |
object | Indicate left time untill bonus expire |
Type:
- object
Methods
calculateBonusTime(expirationDate) → {void}
- Source:
Calculate bonus countdown time
Parameters:
| Name | Type | Description |
|---|---|---|
expirationDate |
Time |
Returns:
- Type
- void
getShortTime() → {string}
- Source:
Fromatting time string for collapsed bonus header
Returns:
Return days or hours or minutes and seconds
- Type
- string
getTime() → {string}
- Source:
Fromatting time string for expanded bonus header
Returns:
Return days hours minutes and seconds if they exists
- Type
- string
render() → {view}
- Source:
Render
Returns:
- Type
- view
renderBonusContext(bonus, time) → {view}
- Source:
Render bonus expanded
Parameters:
| Name | Type | Description |
|---|---|---|
bonus |
object | |
time |
string |
Returns:
- Type
- view
renderBonusInfo() → {view}
- Source:
Render bonus info
Returns:
- Type
- view
renderFreeBets() → {view}
- Source:
Render free bets
Returns:
- Type
- view
toggleBonusHeader() → {void}
- Source:
Toggle bonus header and close bonus info
Returns:
- Type
- void
toggleInfo() → {void}
- Source:
Toggle info for bonus leveling
Returns:
- Type
- void
Type Definitions
props
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
bonus |
object | |
bonusLeveling |
Array | |
isBonusHeaderOpen |
boolean | |
config |
object | |
freeBets |
Array | |
toggleBonusHeader |
function |
Type:
- object