react-component / react-component/table
[Proposal]column.render provide dataIndex for callback
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
text = render(text, record, index);
https://github.com/react-component/table/blob/master/src/TableCell.js#L63
Would provide dataIndex to user because I want know which column for callback?
Contributor guide
No contributing guide indexed for this repository
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 in src/TableCell.js at the render(text, record, index) call and inspect how column.render callbacks are defined and used. Determine the expected dataIndex argument and verify that the callback receives it without changing existing render behavior; the issue does not name a test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100