primefaces / primefaces/primereact

DataTable: API for adding a new row

Open
#2,851 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Resolution: Workaround Type: Enhancement
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the feature you would like to see added

Add new row feature to the data table with inline editing. Currently it can be done with adding a empty object to the backend list but It nay shows an empty row and user need to click on edit button and change it to edit mode.

Is your feature request related to a problem?

It is a missing feature that described above. The lack of this feature enforce the user to crate new dialog for all data entry screens.

Describe the solution you'd like

The solution I’m looking for is to control the add new row feature from the component api so it is easy to add the new row conditionally or through different scenarios.

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 reading the DataTable component's existing inline-editing behavior and how rows are supplied. Define the component API needed to trigger adding a row conditionally or through different scenarios, while keeping the new row immediately editable. Done means consumers can add a new row through the API without creating a separate data-entry dialog.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.