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