I am learning the SDK. I see that we are subclassing the sap.designstudio.sdk.Component object. In all the examples, we are to copy existing components and modify them to our needs. This is great, but where are the details on how the environment behaves? What are the methods and properties of sap.designstudio.sdk.Component? I see that init, afterUpdate and other functions get called, but what are all of the functions that get called? What properties are available?
I hope that some of these questions can be answered.
Thanks and happy New Year.
This is for the DIV event handler & yes the UI5 event handler use slightly different methods.
So we create an alias referred to as that, so that you can still access the original function.
Let me show you this with a very simple example
// here 'this' is a reference to the element clicked on(current scope)
var that = this;
// here 'this' is a reference to the current element in the loop
// 'that' is still a reference(alias) to the element clicked on
It is not necessary that you declare it as that ,you can even declare it as
var self = this;
You can refer to this page from jquery for the this keyword.