What is the usage of the “dependents” aggregation?

99封情书 提交于 2020-01-13 02:47:31

问题


What is the real world usage of the "dependents" aggregation in SAPUI5.

This was added in version 1.9. What problem does it solve? I couldn't find much documentation in the SCN site on this.


回答1:


It's to connect otherwise 'orphan' UI elements so they can partake of the databinding available to e.g. a view. It's especially relevant when you instantiate a dialog, e.g. from a fragment, in a view's controller. The dialog won't automatically have the models that are set on the view available to it ... but if you make the dialog a dependent of the view, it will.

See "Using Dialogs Defined As Fragments" for more info.



来源:https://stackoverflow.com/questions/24633596/what-is-the-usage-of-the-dependents-aggregation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!