0
로컬 저장소가 아닌 서버에서 필터링하는 여러 필드에 필터를 만들려면 어떻게해야합니까?여러 필드에 원격 필터를 만드는 방법은 무엇입니까? Ext Js 5
지금까지 나는 로컬에서만 정보를 얻었습니다.
onFilter: function(field, newValue, oldValue, options){
var grid = Ext.getCmp('grid');
grid.store.clearFilter();
if (newValue) {
var matcher = new RegExp(Ext.String.escapeRegex(newValue), "i");
grid.store.filter({
filterFn: function(record) {
return matcher.test(record.get('id')) ||
matcher.test(record.get('names'));
}
});
}
}