primefaces / primefaces/primereact
DataTable: API for adding a new row
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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