I understand the arguments but the reference to the component is lost.
In the callback, afterSelectionEnd(), the ‘this’ should refer to the component.
Seems like it is not. Can you provide an example where the selected row and column are stored as fields in component and whose values is set in the afterSelectionEnd() function?
@aleksandra_budnik I am worried that the OP’s problem was not solved by the link that you provided.
The problem is that in the user’s Angular component method, “this” refers to a wrong thing. The same problem can be seen in the “onBeforeChange” method in this JSFiddle: https://jsfiddle.net/warpech/t2doLs3k/6/ (“this.id” resolves to undefined)
The workaround is to provide the callback function in the options object, not in the HTML template, as presented in the “afterChange” method in the same JSFiddle.
You are right. Based on my current perspective in 2023, I completely agree with your point. Actually, that made me think. I could review older topics on the forum and update them if there’s anything left unsaid. Thank you for updating the topic and for the inspiration.
Sorry for the delay @warpech I needed to consult someone from the dev team to confirm that this is not an error. When the function onBeforeChange is written like this