Skip to main content

Update options

List of parameters

NameTypeRequiredDescription
betSlipOffsetTopnumberYesThe parameter that defines the gap between top of the window and opened betslip (for example, fixed header)
betSlipOffsetBottomnumberYesThe parameter that defines the gap between bottom of the window and betslip (for example, fixed footer)
betSlipOffsetRightnumberYesThe parameter that defines the gap between right side of the window and betslip (for example, fixed sidebar)
betSlipButtonHTMLElementYesWill be used when the player adds an outcome to the betslip on mobile device
Relevant for cases where Partner uses their own betslip button
Animation will be targeted to the DOM element provided by 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 page with soccer will be displayed
stickyTopnumberYesThe parameter that defines the range between top of the window and sticky (fixed) elements in the application (sidebar etc.)
It is recommended to use the height of Partner's fixed header
Use 0 in case there is no fixed header

Change top/bottom position of Betslip:

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

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