This is the simple code that shows how to extend a filter component.
$.extend($.fn.datagrid.defaults.filters, {
myfilter: {
init: function(container, options){
var cc = $('<span></span>').appendTo(container);
//...
return cc;
},
getValue: function(target){
//return $(target).html();
},
setValue: function(target, value){
//$(target).html(value);
},
resize: function(target, width){
$(target)._outerWidth(width)._outerHeight(22);
}
}
})