GW2Treasures / gw2treasures.com

Guild Wars 2 database
https://gw2treasures.com
MIT License
21 stars 7 forks source link

DataTable: Allow hiding dynamic columns #943

Open darthmaim opened 9 months ago

morph1nX commented 1 month ago

Hi, could you please describe which feature you mean by 'dynamic columns'. I am a mostly frontend React dev and would love to take a shot at the problem!

darthmaim commented 1 month ago

First of all, thanks for your interest in contributing!

I mean columns created with DynamicColumns from data tables (see DataTable.tsx). Dynamic columns are columns that are rendered client-side, mostly used to show individual account progress and similar data.

Right now you can only hide static columns in the associated ColumnSelection.

To implement this, the dynamic column would have to be wrapped in some client component that adds the column to context (maybe reuse ColumnSelection/DataTableClientCell?

Feel free to drop by the discord if you have any questions.