You are absolutely right. Details of the management life cycle and implementation details are very well hidden in the documents. I will try to summarize my understanding so far.
The life cycle of a control is primarily determined by:
:
sap.ui.core.Control.extend("a.sample.Control", {
init : function() {
this._btn = new sap.m.Button();
},
onBeforeRendering : function() {
this.$("subelement").off("click", this.subElementClick);
},
onAfterRendering : function() {
this.$("subelement").on("click", this.subElementClick);
},
subElementClick : function() {
},
exit : function() {
this._btn.destroy();
delete this._btn;
}
});
init ?
UI5 ManagedObject. "" UI5 init. , init , , .
rerender?
SAPUI5 , . rerender , invalidate .