Open rstaib opened 9 years ago
+1 :+1:
+1
I think this is a critically important enhancement. I've tried to handle it with converters, but I haven't had any luck thus far.
+1
Try data-formatter.
formatters: { "age": function(column, row) { return row.person.age; } }
My data does not show me, what is my mistake?
`{
"current":"1",
"rowCount":"10",
"rows":[
{
"_id":"57e3cd01cd4ff73adfe6a7b2",
"evento":"prueba1",
"fecha":"2016-09-05",
"tipo":"prueba1",
"textolibre":"This is a....",
"localizacion":{
"continente":"am",
"pais":"El Salvador",
"ciudad":"El salvador"
},
"__v":0
}
],
"total":1
}
<th data-column-id="localizacion.pais" data-type="string">Pais</th>`
Are there any plans about this feature?
This feature enables native access to subproperties of a field (see example below).
Here
person
is actually one field. But instead of being a value likenumber
orstring
it's anobject
that has properties which are holding the content we're interested in (e.g. age, id and so on). See the example object below.Many thanks to Mohammed Riyad El Khoudary for conceptional work.