Class: ScoresComponent

ScoresComponent()

Component representing the scores & match-ups page.

Constructor

new ScoresComponent()

Source:

Extends

  • Component

Members

column_defs :Array.<object>

Column definitions for the matchups grid.
Type:
  • Array.<object>
Source:

current_week :number

The number of the current week shown in the interface
Type:
  • number
Source:

data :Array.<object>

The currently shown week's data.
Type:
  • Array.<object>
Source:

max_week :number

Most recent week number.
Type:
  • number
Source:

min_week :number

Least recent week number.
Type:
  • number
Source:

week_x_data :Array.<Array.<object>>

Array of arrays of data for each week with first item being week 1, second being week 2, &c.
Type:
  • Array.<Array.<object>>
Source:

Methods

to_next_week()

When called, advances the data to the next-most recent week, if one exists.
Source:

to_previous_week()

When called, advances the data to the next-least recent week, if one exists.
Source:

(async) vue_on_create() → {Promise.<void>}

Called when the component is instantiated. Initializes the current week to the most recent week.
Source:
Returns:
Type
Promise.<void>