template

defines the look of items inside the multiselect list of the Filter

string|function template;

Example

{
    view:"filter",
    type:"number",
    field:"year",
    template:function(obj){
        var value = obj.year;
        var color = value >= 1970 ? "green" : "red";
        return "<span style='color:"+color+"'>"+value+"</span>";
    },
    // ... 
}

Related samples

Details

An optional parameter. By default, displays the values from the field.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.