Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Leaderboard

us.event.golf.leaderboard displays a complete leaderboard for a given golf tournament.

For the widget to render you must provide a valid stageId, or a valid uid and tourStageId. All other properties are optional.

When providing a uid and tourStageId you can additionally provide a valid season to specify a non-current season.

A stageId uniquely identifies a certain golf tournament of a certain season (an event), while uid and tourStageId only identify a certain golf tournament in a tour, without also identifying a season.

Parameters

Property Name Type Argument Description
stageId number optional ID of an event
uid number optional ID of a golf tournament. Must be specified together with tourStageId.
tourStageId number optional ID of a tour. Must be specified together with a uid. Currently supported tours: PGA (tourStageId 306287) and LPGA (tourStageId 409406).
season number optional Season, specified as a year. Together with uid it uniquely identifies an event. If the season is omitted, an event from the currently active season is selected.
columns string optional Comma-separated names of columns to display in the order specified. Possible columns: pos, score, thru, round1, round2, round3, round4, roundp (playoff rounds only), strokes, money (post-event only), points (post-event only).
disableSeasonDropdown boolean optional Hides the season dropdown when true.
border boolean optional When set to true the table is displayed with a border.
onItemClick function optional Function/event handler. Emits playerId when a user clicks on a player.

Examples

<div class="sr-widget" data-sr-widget="us.event.golf.leaderboard" data-sr-stage-id="721608"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>

<script>
    (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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.event.golf.leaderboard', {stageId: 721608});
</script>
<div id="sr-widget"></div>

<script>
    (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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.event.golf.leaderboard', {stageId: 721608, onItemClick: function(target, obj){alert(target+':'+JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>