Nested property in table header accessor? #2274
-
The API I'm using returning data in this format:
Where some of the properties are in the dot notation format
The Product ID is not visible in the table. I'm guessing because of the nested property. |
Beta Was this translation helpful? Give feedback.
Answered by
BrianMitchL
May 6, 2020
Replies: 1 comment 1 reply
-
You can use a function for the assessor! Try: {
Header: 'Product ID',
accessor: (item) => item.pr.productnumber,
minWidth: 100,
width: 100,
maxWidth: 200
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
szmarci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use a function for the assessor! Try: