This commit is contained in:
@@ -29,10 +29,16 @@ TODO:
|
|||||||
|
|
||||||
|
|
||||||
What it needs from it's parent form:
|
What it needs from it's parent form:
|
||||||
|
- form key for saving / getting persistent grid settings
|
||||||
- api list url
|
- api list url
|
||||||
- filter id
|
- filter id
|
||||||
- refresh command
|
- refresh command
|
||||||
- rows per page
|
- rows per page
|
||||||
|
|
||||||
|
What it needs to provide TO it's parent form
|
||||||
|
- Item click info to trigger opening edit form
|
||||||
|
- Selected items list for mass ops
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
What will be delivered by the server:
|
What will be delivered by the server:
|
||||||
@@ -45,7 +51,17 @@ What will be delivered by the server:
|
|||||||
|
|
||||||
What this grid needs to do:
|
What this grid needs to do:
|
||||||
- On created or refresh or change of filter
|
- On created or refresh or change of filter
|
||||||
|
- set Loading property to true on data object
|
||||||
|
- send the get request to the server based on filter, viewport etc
|
||||||
|
- On receipt of successful response
|
||||||
|
- update the paging values
|
||||||
|
- update the persistent form settings with the current grid selections for paging etc
|
||||||
|
- generate the column headings
|
||||||
|
|
||||||
|
- fill the rows
|
||||||
|
- On fail
|
||||||
|
- Do something
|
||||||
|
- set loading property to false
|
||||||
|
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user