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

Table Component Customization #1897

Open
Stankman opened this issue Mar 6, 2023 · 1 comment
Open

Table Component Customization #1897

Stankman opened this issue Mar 6, 2023 · 1 comment

Comments

@Stankman
Copy link

Stankman commented Mar 6, 2023

Describe the bug
I want to colour certain rows on my table using data-cls-body-row or data-cls-body-cell and it's not working

Expected behavior
Those options must work to add classes to rows and cells even dynamically.

Screenshots
image

@olton
Copy link
Owner

olton commented Mar 6, 2023

All class props are defined here
https://github.com/olton/Metro-UI-CSS/blob/master/source/components/table/table.js#L83-L117
You can use onDrawCell event to customize the cell by your rules. Example https://codepen.io/olton/pen/mdRwqBB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants