Hi all,
I need to trap and change the serverFilter (header column filter) generated string from
filter[column]=1
to
filter[column]={“oper”:"=",“value”:“1”}
any suggestions?
Thanks
Hi all,
I need to trap and change the serverFilter (header column filter) generated string from
filter[column]=1
to
filter[column]={“oper”:"=",“value”:“1”}
any suggestions?
Thanks
try this
{
url: function(params){
if(params && params.filter){
var key, value;
for(key in params.filter){
value = params.filter[key];
if(value){
params.filter[key]={oper:'=', value:value};
}
}
}
return webix.ajax().bind(this).post("/path/to/data", params)
}
}
@codejoin
url
is in table’s config.
https://docs.webix.com/api__link__ui.datatable_url_config.html
it can be data proxy as well.
url receives params generated from serverFilters and you can change them there if required.