openfun / cunningham

🎨 The Open FUN Design System
https://openfun.github.io/cunningham/
MIT License
23 stars 2 forks source link

✨(react) make optional DataGrid row selection #339

Open NathanVss opened 3 months ago

NathanVss commented 3 months ago

Hi there 👋

When using the selection feature on another project we realized that we needed to make some row non selectable at all by hiding the checkbox completely.

Result

Capture d’écran 2024-08-21 à 16 20 35

Use case

We are building a file explorer in which we want to allow users to select files but not the folders, see:

Capture d’écran 2024-08-21 à 16 21 08
changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 60d17e389abb12037511759a42feb013d164e150

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------- | ----- | | @openfun/cunningham-react | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR