I try to use kanban with types in WebixJet app. But when i try to register types, i always get fail that is “Cannot read property ‘$protoWait’ of undefined”.
My code:
config(){
webix.type(webix.ui.kanbanlist,{
name: "cards",
templateBody: (obj)=>{
let html = "<span class='webix_icon mdi mdi-account'>"+obj.user_id+"</span>";
html += "<img class='image' src='imgs/attachments/"+obj.image+"'/>";
},
});
let config ={
view:"kanban",
cols:[ ...KanbanCols ],
data: task_set_with_comments,
projects_set:projects_set,
users:users_set
}
return webix.require({
"https://cdn.webix.com/pro/edge/kanban/kanban.js" :true,
"https://cdn.webix.com/pro/edge/kanban/kanban.css" :true
}).then(() => config);
}