Class: MyTeamComponent

MyTeamComponent()

Component representing the my-team page.

Constructor

new MyTeamComponent()

Source:

Extends

  • Component

Members

_original_team_name

Original team name to compare against.
Source:

bench_players :Array.<object>

Players on the bench.
Type:
  • Array.<object>
Source:

lineup_column_defs :Array.<object>

Column definitions for the starting/bench lineup grids.
Type:
  • Array.<object>
Source:

moving_player :undefined

The player currently being moved. If none, then will be set to undefined.
Type:
  • undefined
Source:

overall_column_defs :Array.<object>

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

overall_data :Array.<object>

Data for the overall team grid (list of user's team players).
Type:
  • Array.<object>
Source:

save_text :string

The text next to the save button.
Type:
  • string
Source:

show_body :boolean

If true, the body of the page will be shown. Otherwise, hidden. This is used to refresh the entire component at once.
Type:
  • boolean
Source:

starting_players :Array.<object>

Array of players filling starting line up positions. If no player is in a position, then only the "postition" key will be set.
Type:
  • Array.<object>
Source:

team_name :string

The team name.
Type:
  • string
Source:

Methods

update()

Force re-render the entire component by briefly hiding it.
Source:

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

Called when the component is instantiated. Initializes the bench players data.
Source:
Returns:
Type
Promise.<void>

watch_team_name()

Fired when the team name changes. Marks the data as needing a save.
Source: