Cannot listen to order change
I have a component outside of the component where the table is rendered that is using a table instance. It is controlling table columns visibility and sorting.
When columns visibility is changed, I can see the changes in the component and the table as well, everything is working as expected.
When I try to reorder the columns I don't see the changes in the component. Table changes the columns order but the component controlling it does not (what I mean the list items you can drag are keeping the same order as before). I used same dnd library as in the example, how can I listen to that change in external component?
1 Reply
metropolitan-bronzeOP•2y ago
I'm using table.getAllLeafColumns() to render the items in the control component which based on my experience right now seems to be incorrect. I'm changing the column order using table.setColumnOrder().