lukas-kratochvil / mafil-proband-safety-questionnaire

MAFIL - Proband Safety Questionnaire
https://mafil-proband-safety-questionnaire.vercel.app
The Unlicense
2 stars 0 forks source link

Column ordering in Table pages #11

Closed lukas-kratochvil closed 1 month ago

lukas-kratochvil commented 5 months ago

Table pages:

lukas-kratochvil commented 1 month ago

I don't know how to create sorting on custom rendered column Cell: https://www.material-react-table.com/docs/guides/data-columns#custom-cell-render

lukas-kratochvil commented 1 month ago

Sorting on other columns done in commits:

lukas-kratochvil commented 1 month ago

There is an answer to why we cannot create sorting on custom rendered column Cell:

Cell is only used to modify the appearance and cannot be sorted by it, the data model is determined by the accessor and can be sorted on it. Define accessorKey or id together with accessorFn and then use sortingFn.