Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delegates in sapui5

Hi,

what is the use of event delegates in sapui5.? I have seen some examples where they use

this.addEventDelegate({

onAfterRendering : function(e)

{

// some logic

}});

My question is already in the controller we have onAfterRendering hook method which we can make use of, why to explicitly use delegates? I am a  newbie please kindly help.

Thanks

Sushmitha

Former Member
replied

>.or can we use any functions like browserevents like onclick etc


see the code below. you can add delegate to any event

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question