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
Uh oh!
There was an error while loading. Please reload this page.
-
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.
accessorfunction 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 therowobject passed to the accessor function is of typeTData, notRow. In hindsight it looks like I misread these docs. Maybe it's worth either clarifying theAccessorFnsignature and/or adjusting the code snippets there to readrowDatainstead of justrow?Beta Was this translation helpful? Give feedback.
All reactions