Access row data within formatter #925
Unanswered
nmolinatcv
asked this question in
Q&A
Replies: 1 comment
-
Have you tried to add all the row data in the last position of the array?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to access the row data from within the formatter? I'm not interested in the row cells, especially since those are index based and any column changes would break those. Preferably, I'd like the formatter to have access to the "row" data found in "columns.data" function.
Example
Let's assume I want a table that shows company name and score, but I want the name to be a link to the website and the score to have a data attribute with the company id. I'd like access to the row data object so I can easily reference the needed props by their name.
Beta Was this translation helpful? Give feedback.
All reactions