template
specifies a template for List items
template?: (obj: IDataItem) => string;
Example
const list = new dhx.List("list_container", {
template: function(item) {
return "<strong>!!!</strong>" + item.value;
}
});
Related sample: List. HTML template for item
The template function takes one parameter:
item | (object) an object of a data item |