Play-by-Play
us.match.ncaaf.playByPlay displays a running timeline of every drive in a given game, as well as an interactive field display.
For the widget to render you must provide a valid matchId
.
Parameters
Name | Type | Description | ||||
---|---|---|---|---|---|---|
props |
object | properties | ||||
Name | Type | Argument | Default | Description | ||
matchId |
number | required | Match ID | |||
disableInnerScrolling |
boolean | optional | When set to true the inner fixed-height drives scroll area is disabled. The widget displays full height. |
|||
listOrder |
string | optional | The order of quarters, drives, and plays in the list. Valid values are: 'default' - during a live game quarters, drives, and plays are listed in a descending order, otherwise in an ascending order; 'desc' lists quarters, drives, and plays in a descending order; 'descq' lists quarters in a descending order, and drives and plays in an ascending order; 'asc' lists quarters, drives, and plays in an ascending order. |
|||
selectedQuarter |
number | optional | null | The number of the quarter, when selecting a play with the triplet selectedQuarter, selectedDrive, selectedPlay. Can be one of 1 , 2 , 3 , 4 , or 5 (overtime). Defaults to the last quarter played. |
||
selectedDrive |
number | optional | null | The number of the drive, when selecting a play with the triplet selectedQuarter, selectedDrive, selectedPlay. Numbering starts at 1. Defaults to the last drive played. | ||
selectedPlay |
number | optional | null | The number of the play, when selecting a play with the triplet selectedQuarter, selectedDrive, selectedPlay. Numbering starts at 1. Defaults to the last play played. | ||
filterQuarter |
number | optional | null | When set, displays only drives of the specified quarter. Can be one of: null , 1 , 2 , 3 , 4 , 5 (overtime). Null represents no restriction. |
||
filterDrive |
number | optional | null | Can be one of: null , scoring , team . When scoring , displays only scoring drives. When team , displays only drives where the team set with filterDriveTeamId is in possession. Null represents no restriction. |
||
filterDriveTeamId |
number | optional | null | Sets the team ID to use when filterDrive is team . |
||
useTeamColors |
boolean | optional | null | Valid values are: null (Uses your settings. If you are configured to use team colors, then the theme can be overridden with the teamColorsTheme parameter.), true (team colors will be used, as specified with the teamColorsTheme parameter. If your configuration does not specify a team colors theme, then team colors will not be used.), or false (team colors will not be used). |
||
teamColorsTheme |
string | optional | null | When set (and not disabled by useTeamColors), specifies the name of the formula to calculate team colors (e.g. mono-team-colors-light ). |
||
enableTeamSelect |
boolean | optional | false | When set to true enables team selection. Interactive areas are: team name and logo in a match header, team logos in the statistics sub-headers, rows in the scoring table of the match header, and team logos in the driveList and on the pitch. TeamId is emitted on click or touch. |
||
onTeamSelected |
function | optional | A callback that is invoked when a team has been selected. enableTeamSelect must be set to true . |
Examples
<div class="sr-widget" data-sr-widget="us.match.ncaaf.playByPlay" data-sr-match-id="17919392"></div></code>
<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.match.ncaaf.playByPlay', {matchId: 17918058});
</script>
<div id="sr-widget"></div>
Updated over 1 year ago