How to perform partial matches when filtering Slickgrid using column-level headers?
问题 When using a fixed header row to implement column-level filters, how can I return cells with a partial match? ie: search term: "omato" returns: automator, tomato etc. 回答1: Under MyFilter in the example replace this loop... for (var columnId in columnFilters) { if (columnId !== undefined && columnFilters[columnId] !== "") { var c = grid.getColumns()[grid.getColumnIndex(columnId)]; if (item[c.field] != columnFilters[columnId]) { return false; } } } with this.. for (var columnId in columnFilters