DataTables / DataTables/Select

Feature: Option for minimal selection

Open
#11 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
44
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Hi,

it would be really nice to have an option with whom one could define that there has to be one(or x) entry selected all of the time. (Maybe as a new selection mode?)
Which would mean that there would be an automatic selection when rendering the table, when there is only one row in the table this one can not be deselected and there is only one case when there is no selection... when the table is empty.
Would be very nice to have such a behavior.

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 by reviewing the Select extension's existing selection modes and table-rendering behavior. Define how a minimum selection option should behave for one row, multiple rows, deselection, and an empty table; add coverage for those cases before considering the feature complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.