Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass column to customCell for Table #5052

Closed
1 task done
rowanwins opened this issue Dec 17, 2021 · 2 comments
Closed
1 task done

Pass column to customCell for Table #5052

rowanwins opened this issue Dec 17, 2021 · 2 comments
Labels

Comments

@rowanwins
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

I am trying to create a Table which is matrix of rows and columns where a cell with matching keyword from the column and the row has a class applied to it. See the image below where you will notice a cell highlighted where the row and column have a matching name.

download

Currently the customCell prop on a column accepts a function with arguments for record and rowIndex, however to do my match I need access to some column information, either the full column object, or a columnIndex.

What does the proposed API look like?

I suggest extending the existing customCell prop with additional arguments for column and/or columnIndex.

customCell (row, rowIndex, column, columnIndex) {
}
@rowanwins
Copy link
Author

Thanks @tangjinzhou , that's very helpful!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant