Skip to content

Pass column to customCell for Table #5052

Closed
@rowanwins

Description

@rowanwins
  • 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) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions