icflorescu / icflorescu/mantine-datatable

Feature Request: Add `rowChecked` or 'rowDisabled` property

Open
#735 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

In some situations, we need to display a list of items with certain entries pre-checked. For example, consider the following scenario:

A list of groups is shown in a DataTable. Groups that are already assigned to the user should appear as checked and should also be disabled.

Having properties such as rowChecked or rowDisabled that accept a list of IDs to be checked or disabled would be helpful for handling such cases.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the DataTable row-selection API and trace how selected rows and disabled rows are represented. Check existing selection behavior and determine how ID lists for initially checked and disabled rows should be exposed; done means the requested properties work for the described group-list scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.