extend method for component sapui5

Fiori, sap ui5

Hello,

I needed extend sap ui5 component, and use my method after rendering,

How you can use it?

For example

var form = new sap.ui….

form.addEventDelegate({
«onAfterRendering»: function() {
if (typeof(Top) !== ‘undefined’) {
oPage.scrollTo(0, Top);
}
}
}, this);

 

that really perfect work!