Let's say my data source object looks something like this:
[{
"id": 123,
"name": "blabla1",
"kids": {
"id": "kid1",
"name": "kk1"
}
},{
"id": 456,
"name": "blabla2",
"kids": {
"id": "kid2",
"name": "kk2"
}
}]
This is a list (array) containing 2 objects, with the "kids" key in each, holding an inner object with keys and so on.
When working with Bootstrap Tables, each column is connected to a key in the source object, for example:
<th data-field="id">ID</th>
The question here is how can I define a column to be connected to an inner key in the source object??
I've tried the following thing (suited for the example data above):
<th data-field="kids.id">Inner ID</th>
And it doesn't work. :(
P.S:
I know that I can format each column's data by implementing the designated "data-formatter" attribute, but I prefer to find a more direct and faster way to accomplish what I need in this case.