defines the label on the "More comments" button
webix.ui({
view:"comments",
url:"./common/comments",
moreButton:"Load more"
});
The moreButton setting can be a string or a template function.
The function receives the obj argument with the value property that stores the number of comments on server that have not been loaded yet.
webix.ui({
view:"comments",
url:"./common/comments",
moreButton:webix.template("Load more (#value#)")
});
// or
webix.ui({
view:"comments",
url:"./common/comments",
moreButton:function(obj){
return "Load more (" + obj.value + ")";
}
});