Replies: 2 comments
-
Hi, have you found the answer? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could extract a computed full-name value like so: columnHelper.accessor(row => `${row.firstName} ${row.lastName}`, {
id: 'fullName',
})
// OR
{
id: 'fullName',
accessorFn: row => `${row.firstName} ${row.lastName}`,
} |
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
-
I have following randomly generated Person(s) data:
with the following
Person
typeI am trying to create a column definition using a
ColumnHelper
that combinesfirst_name
andlast_name
into a single column which creates a new column,full_name
, but ain't sure what the best way to achieve this.The current solution I chose is to create an another type like:
and build column definition based on that:
Any suggestions, please?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions