Hidden columns rendering #1978
-
Is it possible to get list of hidden columns, the same as visibleColumns? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
P.S. Will appreciate any thoughts about this! |
Beta Was this translation helpful? Give feedback.
-
Also I noticed that when I make hidden column visible it state becomes valid and it rendered as expected, and if after that I make the same column hidden it will be rendered with expected state (as mentioned earlier, I get it from this call |
Beta Was this translation helpful? Give feedback.
-
This is my current solution for this problem: const pluginName = 'useHiddenColumns';
export const useHiddenColumns = hooks => {
hooks.allColumnsDeps.push((deps, { instance }) =>
[ ...deps, instance.state.filters, instance.state.sortBy ]);
};
useHiddenColumns.pluginName = pluginName; |
Beta Was this translation helpful? Give feedback.
This is my current solution for this problem: