Replies: 6 comments
-
Sample configuration which could be handled by the plugin:
|
Beta Was this translation helpful? Give feedback.
-
I've tried to achieve assumption by handling changes in cells meta. Now it isn't possible, mainly by restrictions of Problems:
I've tried to produce workaround by:
isEnabled() {
if (this.initialized) {
return this.enabled;
}
return false;
}
this.addHook('afterInit', () => this.onAfterInit());
onAfterInit() {
this.buildConditionsByCellsMeta();
// TODO: Workaround. We add functions here, because `filters` property can be set / unset
// by `setCellMeta` and `removeCellMeta` when plugin isn't enabled.
this.addHook('afterSetCellMeta', (row, col, key, value) => this.onAfterSetCellMeta(row, col, key));
this.addHook('afterRemoveCellMeta', (row, col, key, value) => this.onAfterRemoveCellMeta(row, col, key));
// TODO: Workaround. We enable plugin & set conditions basing on cell meta.
this.addHook('afterUpdateSettings', (settings) => this.onAfterUpdateSettings(settings));
} It works, but CE tests are failing and we don't want to change it for just workarounds. |
Beta Was this translation helpful? Give feedback.
-
Thanks for adding @wszymanski 👍 |
Beta Was this translation helpful? Give feedback.
-
Some changes on the old, private repo: https://git.handsontable.com/handsontable-dev/handsontable-pro/commits/feature/issue-176 |
Beta Was this translation helpful? Give feedback.
-
I'm moving this topic to Github Discussions. I welcome everyone to discuss this functionality and share your feedback. See you there! |
Beta Was this translation helpful? Give feedback.
-
My view on this - Filters Plugin should get a function that works in the same way as what's already available for sorting - MultiColumnSorting.setSortConfig(). |
Beta Was this translation helpful? Give feedback.
-
Description
Moved from GL #176
Beta Was this translation helpful? Give feedback.
All reactions