@ratiw One thing I would like, which, looking at the code, is probably just a few lines of code change, is to have the whole dataset that is returned from the GET put into a field.
Lets say the data returned from one of my GETs is in the format
{
"links": {
"pagination": {
"total": 50,
"per_page": 15,
"current_page": 1,
"last_page": 4,
"from": 1,
"to": 15,
}
},
"data" : {
"Title" : "Some title",
"Descr" : "Some description",
"subdata": [
{
"id": 1,
"name": "xxxxxxxxx",
"nickname": "xxxxxxx",
"email": "xxx@xxx.xxx",
"birthdate": "xxxx-xx-xx",
"gender": "X",
"group_id": 1,
},
{
"id": 50,
"name": "xxxxxxxxx",
"nickname": "xxxxxxx",
"email": "xxx@xxx.xxx",
"birthdate": "xxxx-xx-xx",
"gender": "X",
"group_id": 3,
}
}
]
}
where the repeating element is within the main data. My datapath is data-path="data.subdata", but I would also like to be able to display the title and description on the page. If it could return the whole dataset in a field, that would be great. eg:
this.$http.get(url)
.then(function(response) {
this.dataset = this.getObjectValue(response.data, null, null)
this.tableData = this.getObjectValue(response.data, this.dataPath, null)
this.tablePagination = this.getObjectValue(response.data, this.paginationPath)