Accessor function to provide table instance #4482
Unanswered
thomasmarr
asked this question in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to access the table meta object from accessor functions.
My reasoning is outlined below. If I am misunderstanding anything I'd be happy to be corrected.
accessor
function is used for operations like filtering and sortingAside: my initial scan through the docs led me to believe that I could maybe do something like
row.getAllCells()[0]?.getContext().table.options.meta
, (which would be kinda nasty even if it worked). However, when testing I realised that therow
object passed to the accessor function is of typeTData
, notRow
. In hindsight it looks like I misread these docs. Maybe it's worth either clarifying theAccessorFn
signature and/or adjusting the code snippets there to readrowData
instead of justrow
?Beta Was this translation helpful? Give feedback.
All reactions