Standings widget

Description

The Basketball Standings Widget is designed to provide up-to-date information on the current standings of teams in a league or tournament. This widget can be easily integrated into a website or application to provide fans with the latest information on their favorite teams. The widget includes the following features:

  • Team Standings: Displays the current standings of teams in a league or tournament, including wins, losses, and percentages.
  • Team Logos: Displays the logos of the teams in the league or tournament.
  • Filtering: Allows users to filter teams by conference or division.

The widget is fully customizable to match the look and feel of your website or application. Users can choose between light or dark color schemes. Additionally, the widget is responsive, so it will adjust to fit the size of the screen it is being viewed on.

Integrating the Basketball Standings Widget is easy and straightforward, include the library's JavaScript files on your webpage, initialize the widget with the proper configuration, and use the provided API to access and display real-time data.

Widget Options

NameExample valueRequired
data-widget-sport"basketball"YES
data-widget-type"tournament"YES
data-widget-id"basketball-standings"YES
data-config-team-short-name-type"three_letter_code" or "short_name"Optional
data-config-header-displaytrue or falseOptional
data-config-theme"light", "dark" or "client"Optional
data-config-refresh-timeSee Note 1 belowOptional
data-config-entity-linksSee Note 2 belowOptional
data-config-labelsSee Note 3 belowOptional
data-config-stage"4e7a184d-54f7-4d7c-b31b-888525cb9ca4"Optional
data-config-season"c9866492-d719-432d-8f7f-9de6fe9d9ed9"Optional
data-config-competition"8d06dadb-893c-44b2-87c6-b8029a208df2"YES

πŸ“˜

Note 1

Example Refresh times

  "super_fast" - 15 seconds
  "fast" - 30 seconds
  "medium" - 1 minute
  "slow" - 3 minutes
  "super_slow" - 10 minutes
  "never" - doesn’t refresh the data

πŸ“˜

Note 2

Example Entity links

  {
    "team": {
      "url": "https://test.com/basketball/team-{teamId}"
    },
    "competition": {
      "url": "https://test.com/basketball/league-{competitionId}"
    },
    "standings": {
      "url": "https://test.com/basketball/league-{competitionId}#standings"
    },
    "match": {
      "url": "https://test.com/basketball/match-{teamId}-{teamId}#{matchId}",
      "sort": {"criteria": "alphabetically", "direction": "asc"}
    },
    "configuration": {
      "newWindow": true
    }
  }

πŸ“˜

Note 3

  {
    "label_team": "Team",
    "label_matches_played": "MP",
    "label_matches_won": "MW",
    "label_percentages": "PCT",
    "label_points": "PTS",
    "label_match_losses": "ML",
    "label_points_difference": "PD"
  }