tui.grid icon indicating copy to clipboard operation
tui.grid copied to clipboard

How to color row dynamically from the value in format attribute

Open thelovemsg opened this issue 3 years ago • 1 comments

Hello, I'm really looking for the way i can color the row dynamically.

For example, i get codes from database from 1 to 7.

by the value of each codes, i wanna add class on the cell or row.

but, It doesn't work! in your case, how are you gonna change the row color depends on codes? , i mean datas in 'tui-grid-cell-content' class!

it just looks like this

image

i couldn't come up with any idea. plz Sombody Help Me!

thelovemsg avatar Jun 10 '22 06:06 thelovemsg

@thelovemsg You can get rowKey and columnName in editingFinish event. Then, find row or cell by using rowKey and columnName and set the style to it.

jajugoguma avatar Jun 15 '22 02:06 jajugoguma

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Nov 13 '22 09:11 stale[bot]

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Jan 08 '23 00:01 stale[bot]