Skip to content

Hidden columns rendering #1978

Discussion options

You must be logged in to vote

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;

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andreizhvaleuski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant