Skip to main content

Update options

List of parameters

NameTypeRequiredDescription
betSlipOffsetTopnumberYesThe parameter that defines the gap between the top of the window and the opened betslip (for example, a fixed header)
betSlipOffsetBottomnumberYesThe parameter that defines the gap between the bottom of the window and the betslip (for example, a fixed footer)
betSlipOffsetRightnumberYesThe parameter that defines the gap between the right side of the window and the betslip (for example, a fixed sidebar)
betSlipButtonHTMLElementYesWill be used when the player adds an outcome to the betslip on a mobile device
Relevant for cases where the Partner uses their own betslip button
Animation will be targeted to the DOM element provided by the Partner with the { betSlipButton: someHTMLElement } options
urlstringYesThe parameter that defines the page that will be shown to the user after the application is initialized
For example, if url=/1, the page with soccer will be displayed
stickyTopnumberYesThe parameter that defines the range between the top of the window and sticky (fixed) elements in the application (sidebar, etc.)
It is recommended to use the height of the Partner's fixed header
Use 0 in case there is no fixed header

Change top/bottom position of Betslip:

Use the betSlipOffsetTop and betSlipOffsetBottom parameters to change the position of the expanded betslip in relation to the window's top/bottom to avoid UX conflicts, such as undesired overlapping of website elements. Use the updateOptions method to update them without reinitializing the application.

Example: bt.updateOptions({ betSlipOffsetTop: 5, betSlipOffsetBottom: 10 })