Treetable Show multiple values in one Cell

Hello! Good day,

i’m testing Treetable right now and i’m trying to load multiple values in one cell.

But right now it shows only one value and it also shows ‘undefined’ in cells that
suppose to be empty. What have i done wrong or is it even possible to do something like this ?

Snippet : https://webix.com/snippet/1550bbb6

Template returnsundefined if there’s no required data attribute. You just need to handle this case, for example

function check(attr){ return attr ? attr : "" };
// in column template
template: function (obj) { 
        return "<div class='productCss'>" + 
          "<span>" + check(obj.product) + "</span>" + 
          "<span>" + check(obj.expenses) + "</span>"
} 

And so on.

Btw, div tag (as in your snippet here) hasdisplay:block by default, thus each new div cell will be moved to another line (and will be hidden as an overflow for default rowHeight). So actually you can use bothspan ordiv, but with the corresponding CSS.