Accessor + custom Cell #2244
Unanswered
marclemagne
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I was wondering what best practices were for the following. Would appreciate some guidance on which (if either) is preferable. Thanks!
Note for TypeScript: with a functional
accessor
type inference inCell
seems to get lost.In both cases it violates the documentation where
accessor
should:The data returned by an accessor should be primitive and sortable.
Are there any negative side effects for returning null or an object/array/whatever when column is not intended to be sorted?Also, can any TypeScript users tell me if
CellProps
is the correct type to be using for theCell
function?Thanks a lot!
Marc
Beta Was this translation helpful? Give feedback.
All reactions