"data": [
{
"id": 6,
"text": "hello",
"details": "demo",
"status": "work",
"end_day": "2017.04.27 19:30",
"sprint": {},
"tags": "login",
"comments": [
{
"id": 1,
"username": "sfasd",
"text": "sddddd",
"task_id": 6,
},
{
"id": 2,
"username": "phuoc",
"text": "hello",
"task_id": 6,
},
{
"id": 3,
"username": "sown",
"text": "wtf",
"task_id": 6,
}
]
},
{
view:"dataview",
name: "comments",
width:250,
height:200,
type: "myComment",
url: "/api/sprints",
select:true,
},
webix.type(webix.ui.dataview,{
name: "myComment",
template: function(obj) {
return obj.comments.username;
},
width: 261,
height: 90,
css: "movie "
});
- It didn’t work ,it can create template but the data is undefine. Who can give me an idea for this? How can i get value of username or text on data.