mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Allow filtering hidden columns
Summary: Existing filters are now moved out of fields and into a new metadata table for filters, and the client is updated to retrieve/update/save filters from the new table. This enables storing of filters for columns that don't have fields (notably, hidden columns). Test Plan: Browser and server tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3138
This commit is contained in:
@@ -1386,7 +1386,9 @@ GridView.prototype._getColumnMenuOptions = function(copySelection) {
|
||||
|
||||
GridView.prototype._columnFilterMenu = function(ctl, field) {
|
||||
this.ctxMenuHolder.autoDispose(ctl);
|
||||
return this.createFilterMenu(ctl, field);
|
||||
const filterInfo = this.viewSection.filters()
|
||||
.find(({fieldOrColumn}) => fieldOrColumn.origCol().origColRef() === field.column().origColRef());
|
||||
return this.createFilterMenu(ctl, filterInfo);
|
||||
};
|
||||
|
||||
GridView.prototype.maybeSelectColumn = function (elem, field) {
|
||||
|
||||
Reference in New Issue
Block a user