moreButton

defines the label on the "More comments" button

string|function moreButton;

Example

webix.ui({
    view:"comments",
    url:"./common/comments",
    moreButton:"Load more"   
});


Default value:

webix.i18n.comments.moreButton
Details

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 + ")";
    }
});
See also
  • API
  • Back to top