[GH #4388] Add a source to afterChange that identifies setDataAtCell function call

Tags: #<Tag:0x00007efc7098dbb8> #<Tag:0x00007efc7098da00>

Hello,
I need a new possible value for the source parameter in the afterChange hook that differentiates between data changes made by the user (through the cell editor) or programmatically (using setDataAtCell()) because I need special handling for each case. I can’t use a global flag variable like the example you made here because I call setDataAtCell() from multiple locations in different files and it just isn’t feasible.
Thank you

That is a great idea. I have created a similar topic some time ago on meta data https://github.com/handsontable/handsontable/issues/4388

Yes, I remember. It was actually also me who suggested this :grinning:
Do you have an estimation as to when the feature could be out?

Really, oh my :blush:… and I do not have any information about an author there.
I will try to schedule it for March, but I do not know how easy it would be to get the info for the callback.

@aleksandra_budnik any solution for that? I also need a new possible value for the source parameter in the afterChange hook that differentiates between data changes made by the user (through the cell editor) or programmatically (using setDataAtCell())

Hey @ahotbeginner

sorry there are no changes on that topic.

But there’s something that might interest you. We’re working on eco-rendering https://github.com/handsontable/handsontable/issues/5769 it’s a start but it will surely be a helpful in most of the cases.