You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It looks like in order for column dragging to work, a storeColumnsKey must be supplied to the table. This works fine, however I have a table in which users can dynamically add columns. When these columns are added by the user, I'd prefer for them to be rendered in the order specified in the columns array in the useDataTableColumns hook. Instead, they are always added to the right side of the table. I have a pinned ellipsis menu as the last column, and it would be nice to have it stay there when new columns are added.
Describe the solution you'd like
Perhaps introduce a new prop (preserveColumnOrder?) where users could set to false if they want to opt out of this default behaviour.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It looks like in order for column dragging to work, a
storeColumnsKey
must be supplied to the table. This works fine, however I have a table in which users can dynamically add columns. When these columns are added by the user, I'd prefer for them to be rendered in the order specified in thecolumns
array in theuseDataTableColumns
hook. Instead, they are always added to the right side of the table. I have a pinned ellipsis menu as the last column, and it would be nice to have it stay there when new columns are added.Describe the solution you'd like
Perhaps introduce a new prop (
preserveColumnOrder
?) where users could set tofalse
if they want to opt out of this default behaviour.The text was updated successfully, but these errors were encountered: