Complementary module allowing to send a list of patrols (a patrol being a name
and a list of waypoint) to the server and manage the list form the user
interface application.The table contains two colomn of buttons use to delete the row they
are in and resend new version of the modified patrol list. The other button is used to
copy the waypoints of a saved patrol to the current waypoint list.
This component have the following dependency :
Bootstrap-Vue for styling.
Props
Name | Type | Default value | Required? | Description |
---|---|---|---|---|
waypointList |
Array.<Object> |
- | Yes | Lists the current waypoints |
patrolList |
Array.<Object> |
- | Yes | Lists the saved waypoint lists |
Data
Name | Type | Default value | Description |
---|---|---|---|
newPatrolName |
String |
- | Name of the current waypoint list |
placehold |
String |
- | Message of the placeholder for name input textbox / /** Disabled comment documentation Might use those eventually by forking jsdoc-vue-js so it can manage the author and version tag correctly |
- Version:
- 1.0.0
Methods
addPatrolToPatrolList()
Add a patrol to the list, eventually will add on DB.
- Source:
removePatrolFromList(index)
Remove the patrol from the list, eventually this will remove on DB.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
index |
Number
|
Index of the element to remove. |
selectPatrolFromList(index)
Load the selected patrol from the list.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
index |
Number
|
Index of the element to load. |