feat: add container to arguments passed to `dataGetter`
This PR adds the container property to the argument list in the dataGetter call in the same as the cellRenderer call.
I would like to be able to access custom props that are passed to the container in the data getter function. Currently this is supported in the cellRenderer however we don't need the power of the that function (cell rendering for us is taken care of elsewhere).
Thanks for your contribution, the container is initially designed to provide container for Portal/Overlay, not accessing the internal state and props, and the dataGetter is only for simple string display, so no container is needed, that's why container is not provided in dataGetter. For user land, the consumer should always know the table's props as he is passing in the props. On the other hand, dataGetter is used to get cellData and be used in TableCell, so you can simply use another property to column like formatter and passing what ever you have.
I'm not discourage you and suggest you to drop your suggestion, indeed in the next major version I planed to add container to all callbacks like dataGetter and rename it to table to make it more general, and your use case is the best example. But I decided to suspend new features for V1 unless it's really important and there is no workaround, while there is for your case.
Let me know your thoughts, and if you still think it's worth to be supported, you should merge to v1 branch so I can publish patches soon
Thanks for the quick response, you make a good point. It was in response to this thread https://github.com/Autodesk/react-base-table/pull/27#issuecomment-490913336 as an alternative implementation. Let me have another look and see if there is another approach that could be taken.
the context solution would only work for renderers, internally we use formatter to support date/currency/etc display