template

specifies a template for List items

function template;

Example

var list = new dhx.List("list", {
    template: function(item) {
        return "<strong>!!!</strong>" + item.value;
    }
});

Related samples

Details

The template function takes one parameter:

  • item - (object) an object of a data item
See also
Back to top