There is no option (as far as I can tell) to set the view columns. I would have expected an option like setViewColumns which is the setter, and inverse of onViewColumnsChange. The usecase here is that you cannot currently store the columns the user has selected externally (localstorage or url), and then apply that later without doing the legwork to parse, and check each column when setting display in the column options. Perhaps I am missing something in the docs?
Expected Behavior
There is a prop (in options) that takes an array of column names that are visible by default which internally sets display for each column, over-riding whatever is set by default in the column config.
ex:
In this case, I would expect to see first name and last name columns and not age. This makes it easy to extract and update user settings externally, and load them again later.
There is no option (as far as I can tell) to set the view columns. I would have expected an option like
setViewColumns
which is the setter, and inverse of onViewColumnsChange. The usecase here is that you cannot currently store the columns the user has selected externally (localstorage or url), and then apply that later without doing the legwork to parse, and check each column when setting display in the column options. Perhaps I am missing something in the docs?Expected Behavior
There is a prop (in options) that takes an array of column names that are visible by default which internally sets display for each column, over-riding whatever is set by default in the column config. ex:
In this case, I would expect to see first name and last name columns and not age. This makes it easy to extract and update user settings externally, and load them again later.
Current Behavior
No such prop/option.
Your Environment