DataTables / DataTables/RowReorder

Support Programmatic Reordering

Open
#10 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
23
Forks
27
PR merge metrics
No merged PRs in 30d

Description

It would be useful if the extension supported programmatic reordering through an API call like table.rows().reorder(fromIndex, toIndex). Effectively performing the same operation as the drag and drop via an API call.

My use case is that I allow the user to select a number of rows then move them to the top of the table when they click a button. A programmatic API for reordering would simplify this greatly.

Contributor guide

No contributing guide indexed for this repository

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

Review the existing drag-and-drop row-reordering behavior and the extension's public API surface. Define how a programmatic reorder should accept fromIndex and toIndex, including the requested selected-row use case, and verify that the API performs the same operation as dragging.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.