glittershark/reactable

Is it possible to filter rows by hidden columns?

Opened this issue · 2 comments

I need to filter rows by data that I want to hide because is not important to see on frontpage but yes for filtering, p.e. by barcode.

Thanks

Edit: I need to add that I've created my Table mapping array with items and rendering Table, Thead, Th, Tr and Td Components. Actually I have all columns displayed, and filtered setted for the columns needed, but I want to hide some columns, I can't find 'hidden' prop

You can use the defaultSort attribute on the table to sort on by default:

<Table
     sortable={true}
     defaultSort={{column: 'Barcode', direction: 'desc'}}>

If you hide the column by css, I think it should work just fine.