Why should I use cell.render("Cell") instead of cell.value ? #3706
-
Hello, I'm confused, what's the point of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The render call formats your cell using the columns Cell formatter. |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley, Thanks. One more question: For some unusual reason, I want the cells to render their column name instead of cell value. Can I easily get the column name of the cell without this long workaround?
That's because I found |
Beta Was this translation helpful? Give feedback.
-
cell.column.render(”Header”)
Tanner Linsley
…On Feb 11, 2022, 12:31 PM -0700, Levan Katsadze ***@***.***>, wrote:
@tannerlinsley, Thanks. One more question: For some unusual reason, I want the cells to render their column name instead of cell value. Can I easily get the column name of the cell without this long workaround?
<td>{tableColumns.find((x) => x.accessor === cell.column.id)?.Header}</td>
That's because I found cell.column.id but I cannot find anything like this: cell.column.name.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
The render call formats your cell using the columns Cell formatter.