I want to show a grid for this document (model):
{
id: "53f7ba4b30d2317912fc8004",
title: "Hellow world",
on_slideshow: false,
country: {
name: "United state",
country_code: "US"
}
tags: [
{
name: "backbonejs"
object_id: "72691"
},
{
name: "backgrid"
object_id: "72692"
}
]
}
in my js file ..
var grid = new Backgrid.Grid({
columns: [{
name: "title",
label: "Title",
cell: "string"
},
{
name: "country",
label: "Country",
cell: "string"
},
{
name: "on_slideshow",
label: "Slide",
cell: "boolean"
},
{
name: "tags",
label: "Tags",
cell: "string"
},
{
name: "pub_date",
label: "Publiched",
cell: "string"
}],
collection: articles
}).render();
Tags show as [object Object],[object Object] and country didn't show at all.
How can I show them properly, Tags' name and country list ?