reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

Array passed into the table doesn't follow the order

Open Pnctsrc opened this issue 9 years ago • 1 comments

Hello, I want to pass a sorted array into reactive-table. But when the data shows up on the page, the order is different. For example, the first row is not the item at index 0 but something else. I added sortable:false to every header but it won't work. I'm sure that the array that's passed has the right order. What should I do?

Pnctsrc avatar Jul 17 '16 02:07 Pnctsrc

The table can only sort based on one of the columns, but you can add hidden: true to it if you don't want it to show. You will have to put the array indexes into the array data so that can be a column.

aslagle avatar Jul 18 '16 01:07 aslagle