Update options
List of parameters
Name | Type | Required | Description |
---|---|---|---|
betSlipOffsetTop | number | Yes | The parameter that defines the gap between top of the window and opened betslip (for example, fixed header) |
betSlipOffsetBottom | number | Yes | The parameter that defines the gap between bottom of the window and betslip (for example, fixed footer) |
betSlipOffsetRight | number | Yes | The parameter that defines the gap between right side of the window and betslip (for example, fixed sidebar) |
betSlipButton | HTMLElement | Yes | Will 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 |
url | string | Yes | The 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 |
stickyTop | number | Yes | The 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 })