Widgets.us.season.PlayoffRounds

us.season.playoffRounds displays all playoff games in one round for a selected season. Supports NBA, WNBA, NHL and MLB.


new PlayoffRounds(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
seasonId number <optional>

Season id.

selectedRound number <optional>
1

The round of the playoff to display. Values range from 1 to 4, 1 being the first round. Any other number will default to first round!

conference string <optional>
western

The selected conference. Value can be either western or eastern

disableRoundsDropdown boolean <optional>

If true disables rounds dropdown selector.

disableConferenceDropdown boolean <optional>

If true disables conference dropdown selector.

border boolean <optional>

If true enables a border around the widget.

onItemClick function <optional>

Function/event handler. Emits matchId and matchStatus on match item click or touch.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.playoffRounds" data-sr-season-id="11458"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/uscommon/widgetloader" data-sr-language="en_us" async></script>

JS/Programmatic

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.playoffRounds', {seasonId: 11458});
</script>
<div id="sr-widget"></div>

JS/Example of using Event Handler

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.playoffRounds', {seasonId: 11458, selectedRound: 1, conference: 'eastern', onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>