は、私は以下の私がonBeforeFirstShow
イベントが任意のコントロール/ビューのAPIドキュメントにある見ていないので、私はそのイベントのデリゲートを理解することはできませんMaster.controller.js
なぜonBeforeFirstShowは機能しますか?
onInit : function() {
this.getView().addEventDelegate({
onBeforeFirstShow: function() {
this.getOwnerComponent().oListSelector.setBoundMasterList(oList);
}.bind(this)
});
}
でスニペットは、マスター・ディテール・デモを学習されています。
これは単なるユーザー定義のイベントか、あらかじめ定義されたイベントですか?
私はそれはonAfterRendering
前に起こっているようです
this.getView().addEventDelegate({
onBeforeFirstShow: function() {
console.log("onBeforeFirstShow");
}.bind(this),
onAfterRendering: function() {
console.log("onAfterRendering");
}.bind(this)
});
を試してみました。ほかに:
this.getView().onAfterRendering
はfunction
this.getView().onBeforeFirstShow
を返さundefined
を返しました。
IはControllerとViewのDOC、およびsap.ui.core.mvc.Controllerとsap.ui.core.mvc.Viewのソースコードで検索しました。ライフサイクル・メソッドは4つしかありません。
更新:https://openui5.hana.ondemand.com/#/api/sap.m.NavContainerChildにあります – Tina