The Bet Builder widget lets visitors on your site interactively create and manage custom parlay bets by clicking odds cells on Tile widgets. When the bet builder is active, each clickable cell in a Tile widget becomes a bet selection. Selections accumulate in a floating slip that the visitor can review, adjust, and take to a sportsbook. Bet state persists inDocumentation Index
Fetch the complete documentation index at: https://docs.tally.site/llms.txt
Use this file to discover all available pages before exploring further.
localStorage across page navigations within your site.
Enabling via script attribute
The simplest way to enable the bet builder is to adddata-tallysight-bet-builder-enabled="true" to the SDK script tag:
Enabling via JavaScript API
You can also enable and disable the bet builder at runtime using theTallysight JavaScript API. This is useful for toggling the feature based on user preferences or page context:
enableBetBuilder() returns a Promise that resolves to true on success or false if the bet builder could not be initialized. disableBetBuilder() returns true on success.
You can also pass the configuration when initializing the SDK programmatically:
How it works
When the bet builder is enabled:- The SDK automatically creates a widget element with
data-tallysight-widget-type="bet-builder"and appends it to<body>. - Odds cells in Tile widgets on the page become interactive — clicking a cell adds or removes it from the current parlay.
- The floating bet slip displays selected picks, combined odds, and a link to place the parlay at a sportsbook.
- Bet state is stored in
localStorageso it survives page navigation within your site.
Complete embed example
The bet builder widget element is created and inserted into the DOM automatically when the SDK initializes with
data-tallysight-bet-builder-enabled="true" or when you call Tallysight.enableBetBuilder(). When you call Tallysight.disableBetBuilder(), the widget element is removed from the DOM and the bet store state is cleaned up. You do not need to add a data-tallysight-widget-type="bet-builder" element manually.