SAP UI5 的 Unified Shell 发展历史和用法介绍试读版

本教程前面的文章,我们介绍了 SAP UI5 的 UI Area:

以及 SAP UI5 容器类控件的一些例子,比如 PagePanel 控件:

在 SAP UI5 发展历史上,sap.ui.unified.Shell 是另一个比较重要的容器控件。

Shell 控件是 SAP UI5 应用里所有控件的根控件(Root control),可以理解成控件树形层级结构里的根节点,只是后来随着 SAP UI5 的演进,Fiori Launchpad 诞生之后,因为该 Shell 控件的部分功能和 Fiori Launchpad 有重叠,所以慢慢退出了历史舞台。

The shell control is meant as root control (full-screen) of an application. It was build as root control of the Fiori Launchpad application and provides the basic capabilities for this purpose. Do not use this control within applications which run inside the Fiori Lauchpad and do not use it for other scenarios than the root control usecase.

然而如果大家在实际项目中,开发的 SAP UI5 应用不是选择 Fiori Launchpad 作为访问入口,那么这个 Unified Shell 控件仍然有用武之地。

本文使用 34 行简单的代码,介绍了 sap.ui.unified.Shell 控件的使用方法,源代码在文末可以获得。

先看看效果:

如何理解 SAP UI5 控件的 aggregation?请举例详细说明。

下面是具体的讲解。

猜你喜欢

转载自blog.csdn.net/i042416/article/details/131726170