Skip to content

Nested property in table header accessor? #2274

Answered by BrianMitchL
szmarci asked this question in General
Discussion options

You must be logged in to vote

You can use a function for the assessor! Try:

{
  Header: 'Product ID',
  accessor: (item) => item.pr.productnumber,
  minWidth: 100,
  width: 100,
  maxWidth: 200
},

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@szmarci
Comment options

Answer selected by szmarci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants