Constructor
new MyTeamComponent()
Extends
- Component
Members
_original_team_name
Original team name to compare against.
bench_players :Array.<object>
Players on the bench.
Type:
- Array.<object>
lineup_column_defs :Array.<object>
Column definitions for the starting/bench lineup grids.
Type:
- Array.<object>
moving_player :undefined
The player currently being moved. If none, then will be set to undefined.
Type:
- undefined
overall_column_defs :Array.<object>
Column definitions for the overall team grid.
Type:
- Array.<object>
overall_data :Array.<object>
Data for the overall team grid (list of user's team players).
Type:
- Array.<object>
save_text :string
The text next to the save button.
Type:
- string
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
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>
team_name :string
The team name.
Type:
- string
Methods
update()
Force re-render the entire component by briefly hiding it.
(async) vue_on_create() → {Promise.<void>}
Called when the component is instantiated. Initializes the bench players data.
Returns:
- Type
- Promise.<void>
watch_team_name()
Fired when the team name changes. Marks the data as needing a save.