Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow to specify custom class name for DataTable cell #1357

Closed
apaulau opened this issue Oct 13, 2021 · 2 comments
Closed

Allow to specify custom class name for DataTable cell #1357

apaulau opened this issue Oct 13, 2021 · 2 comments
Labels
feature request New feature or request

Comments

@apaulau
Copy link

apaulau commented Oct 13, 2021

This function solves the problem (这个功能解决的问题)

At the moment style customization of the DataTable is limited to either column or row level. With the proposed feature, it would be possible to style specific cells based on the user's criteria.

Expected API (期望的 API)

I think it should be similar to the row-class-name for consistency: cell-class-name: string | (cellData: any) => string | object

@github-actions github-actions bot added the feature request New feature or request label Oct 13, 2021
@07akioni
Copy link
Collaborator

maybe add a cellProps: (cellData) => HTMLTdAttributes prop

@jahnli
Copy link
Collaborator

jahnli commented Mar 12, 2024

This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem

@jahnli jahnli closed this as completed Oct 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants