primefaces / primefaces/primereact
DataTable: Row Editor dynamic value update
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
Dynamically set a value of an input field
Is your feature request related to a problem?
My exact problem is when the maximum and minimum values are filled out, I would like to calculate the variance field value.
Describe the solution you'd like
I would like to calculate a field's value and update it, based on data from other fields in the row.
Describe alternatives you have considered
I have tried using my form controller, but then it updates the values even if the row isn't completed.
Additional context
Reproducer: https://stackblitz.com/edit/stackblitz-starters-xv6nmu?file=src%2FApp.tsx
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
Run the linked StackBlitz reproducer and start with src/App.tsx to understand the DataTable Row Editor setup and the maximum, minimum, and variance fields. Trace how edits are committed for a row, then verify that the calculated variance updates from the other field values only when the row is completed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100