“家属"的用法是什么?聚合? [英] What is the usage of the "dependents" aggregation?

查看:38
本文介绍了“家属"的用法是什么?聚合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SAPUI5 中依赖项"聚合的实际用途是什么.

这是在 1.9 版中添加的.它解决什么问题?我在 SCN 站点上找不到太多关于此的文档.

解决方案

它是连接其他孤立"的 UI 元素,以便它们可以参与可用的数据绑定,例如一个看法.当您实例化对话框时,这尤其重要,例如从片段中,在视图的控制器中.对话框不会自动让在视图上设置的模型可用……但如果您使对话框依赖于视图,它就会.

有关详细信息,请参阅使用定义为片段的对话框".>

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.

解决方案

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.

这篇关于“家属"的用法是什么?聚合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆