The Golf Tournament Leaderboard widget displays the current standings and scores for a golf tournament. For the widget to render you need to provide tournamentId; other properties are optional. It is designed for sports betting platforms and sports information sites that need to present live and final tournament standings, helping users track player positions, scores, and round progress throughout a golf event.
Shows the default view of the Golf Tournament Leaderboard widget.
See the Golf Tournament Leaderboard widget demo.
golf.tournamentLeaderboardEnvironment Requirements
Supported Sports
The Golf Tournament Leaderboard widget supports the following sports:
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
entityId | string | Conditional* | undefined | Widget-level entity identifier (format: sr:stage:<id>). Resolved into id / stageId before reaching the building block; takes priority over stageId. See Getting Identifiers |
stageId | number | string | Conditional* | undefined | Tournament stage ID. Can be either number or string in sr:stage:<id> format. See Getting Identifiers |
tour | 'pga' | 'lpga' | 'euro' | No | 'pga' | Shorthand tour name. Mapped to tourStageId in asyncVars when tourStageId is not set (defaults to PGA). |
* Conditional Requirement: At least one of entityId, or stageId must be provided.
Illustrations of main feature variants with relevant property values below.
Shows the default view of the Golf Tournament Leaderboard widget.
See Golf Tournament Leaderboard widget demo
Properties do not always transfer from the above table directly into integration code. Properties must be transformed differently for each integration method:
SIR() callcardVariant: "compact"In javascript integration, the properties go into an object which is passed as the 4th argument of the call ti SIR() function. Please see Global SIR API
data-sr- prefixcardVariant → data-sr-card-variantseasonnumber |
| No |
undefined |
Season year. Picks a specific season from the tour's season list. Changing it (with stageId) resets internal state. |
columns | string | No | undefined | Comma-separated column spec. Keys: pos, score, thru, round1-round4, strokes, money, points. Falls back to default columns when omitted or invalid. |
border | boolean | No | undefined | Adds border styling to the header and table sections. |
pageLength | number | No | undefined | Rows per page. Enables pagination when set to a positive integer. |
paginationType | 'standard' | 'loadmore' | No | undefined | Pagination UI mode. Defaults to 'standard' when pageLength is set. |
disableSeasonDropdown | boolean | No | undefined | Hides the season selector dropdown in the header. |
enableTournamentDropdown | boolean | No | undefined | Shows a tournament selector dropdown instead of a static title. |
disableHeaderFooterSpacing | boolean | No | undefined | Removes default spacing around the header and pagination footer. |
onItemClick | function | No | undefined | Event handler callback function triggered when a player row is clicked or touched within the widget. Emits playerUid and playerId as a parameter. |

Sample Configuration:
string|number10filters.sport.hidden → Complex objects must be passed as JSON stringsIn HTML integration, the properties go into the parent HTML object as object properties, prefixed with data-sr- as explained above.
This method supports only simple (base) properties and does not support properties that require functions.
In all examples replace sportradar in the widgetloader URL path with your clientId.
Example if your clientId is client1:
https://widgets.sir.sportradar.com/sportradar/widgetloaderhttps://widgets.sir.sportradar.com/client1/widgetloaderInitialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
)})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
SIR('addWidget', '#sr-widget', 'golf.tournamentLeaderboard', {
stageId: 'sr:stage:12345'
});<div id="sr-widget"></div>Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.
<div id="sr-widget"
data-sr-widget="golf.tournamentLeaderboard"
data-sr-stage-id="sr:stage:12345">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>