mirror of
https://github.com/suitenumerique/docs.git
synced 2026-05-09 08:32:12 +02:00
We are displaying all team's members in a datagrid. This propose to enable sorting on columns, to easily find members. Please note that few issues were faced when activating the sorting on the Cunningham components. First, custom columns can not be sorted (yet), a PR has been merged on Cunningham's side. We're waiting for the next release. Second, when sorting data rows, if any of the column has some null values, the datagrid sorting state becomes inconsistent. Thx @AntoLC for spotting the issue. It's work in progress on Cunningham's side to fix the issue. Finally, Cunningham export only the SortModel type, which is an array, and doesn't export its items' type. I might have miss something but it feels weird to redefine its items type. Columns wiggle on sorting, because they data is set to undefined while fetching the next batch. it's visually weird, but not a major pain. Next release of Cunningham will allow us to set the column to a fixed size.