Loading Ajax data with nested Arrays
See original GitHub issueIt seems like loading data from Ajax view will only work if the data is in a single array such as
var data = [ { "id": 0, "name": "Item 0", "price": "$0" }, { "id": 1, "name": "Item 1", "price": "$1" }, { "id": 2, "name": "Item 2", "price": "$2" } ];
Is it possible if
var data = [ { "id": 0, "name": "Item 0", "price": "$0", "tags": [1,2,3,4] }, { "id": 1, "name": "Item 1", "price": "$1", "tags": [1,2,3,4] }, { "id": 2, "name": "Item 2", "price": "$2", "tags": [1,2,3,4] } ];
and as a result shows the array values as part of a rowspan within the id.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
@Physium - go to example, click ‘view source on github’ in top right, ctrl+f “responseHandler”
There are only 2 bits of code related to it, and there is no further way to describe it then has already been said, just look at it and use it
Plenty other issues mention it too: https://github.com/wenzhixin/bootstrap-table/issues?utf8=✓&q=is%3Aissue+responseHandler
https://github.com/wenzhixin/bootstrap-table-examples/blob/master/welcome.html
data-response-handler="responseHandler"
@dabros thanks for the advice. I’ll close this issue!