Wijmo UI for the Web
customFilterOperators Option

Type: wijmo.grid.IFilterOperator[]

Default value: []

An array of custom user filters. Use this option if you want to extend the default set of filter operators with your own. Custom filters will be shown in the filter dropdown.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  []
    returnsValue = $(".selector").wijgrid("option", "customFilterOperators");
    
    // Set value
    var newValue; // Type:  []
    $(".selector").wijgrid("option", "customFilterOperators", newValue);
        
});
Javascript (Specification) 
var customFilterOperators : ;
Example
var oddFilterOp = {
name: "customOperator-Odd",
arity: 1,
applicableTo: ["number"],
operator: function(dataVal) { return (dataVal % 2 !== 0); }
}
$("#element").wijgrid({ customFilterOperators: [oddFilterOp] });
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.