Access column props in accessor? #3284
Unanswered
onieronaut
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
My data for this specific set of columns it is somewhat dynamic. The general idea is that I have a list of products with inventory counts for specific warehouses. But not all of the warehouses contain all of the products, so the shape of my data is not static, which is why I cannot 'hardcode' an accessor. Basically I need to be able to identify the column header and cross reference the row data to render the correct value. I have achieved this by just using the Cell property to to access the column and row objects and a function (findWarehouseStock) to find that a product's warehouse name matches the column header.
This works for displaying data, but these columns have no accessor and are not sortable, filterable, and I assume other things that I have not encountered yet. Going back to my question: is there a way to access column props in the accessor to achieve this result or do I need to create custom filter and sort functions to accompany this?
Beta Was this translation helpful? Give feedback.
All reactions