0
私はグループ化された(ユーザーの最後の名前によって)TreeTable(Webix)を持っています。ここでは設定があります:すべての木の枝の内部要素の数を数えて表示するには?
columns:[
{ id:"lastname", template:function(obj, common){
return common.icon(obj, common)+obj.lastname
} }
],
scheme:{
$group:{
by:function(obj){
return obj.lastname.substring(0,1); // grouping by first letter
},
map:{
lastname:[function(obj){
return obj.lastname.substring(0,1);
}]
}
}
},
The snippet(同じ設定、別のデータセット)
分岐タイトルとして最初の文字を示しtemplate
map
プロパティを持ちます。しかし、私は各支店の項目の数を表示する方法を把握することはできません。
- Aのようなもの(18)
- B(5)
など。これを行う方法?ありがとう。