当前位置:网站首页>SAP UI5 FlexibleColumnLayout 控件介绍
SAP UI5 FlexibleColumnLayout 控件介绍
2022-07-05 12:39:00 【汪子熙】
该控件位于命名空间 sap.f 之下。
该控件通过在不同的列中显示最多三页来实现主-细节-细节范式。
该控件在逻辑上类似于 sap.m.SplitContainer,不同之处在于它能够处理三列(称为Begin, Mid和End)而不是两列(Master, Detail)。这三列的宽度是可变的。
有几种可能的布局可以通过控件的API进行更改,也可以由用户通过布局箭头进行更改。
在内部控制使用三个 sap.m.NavContainer 实例,从而形成三列。
这三个实例如下图所示:

在需要同时显示多个逻辑层次的相关信息的应用程序中使用这个控件(例如,列表项、项、子项等)。从某种意义上说,该控件是灵活的,应用程序可以将用户的注意力集中在一个特定的列上,使其变得更大,甚至是全屏。
这些列可以通过 beginColumnPages、midColumnPages 和 endColumnPages 聚合访问。
通过方法 getBeginColumnPages 可以访问 beginColumnPages,其他的聚合以此类推。
这三列的相对大小和可见性是根据 layout 属性的值确定的。
由于用户交互而对布局的更改会通过 stateChange 事件传达给应用程序。
该控件根据设备大小和当前布局自动显示可能的最大列数。应用程序不需要考虑当前设备/屏幕的大小,但只需要添加内容到列和改变布局属性的值。
Layout 属性:

虽然FlexibleColumnLayout可以同时显示2或3个页面,但它们永远不能有相同的宽度(50%/50%或33%/33%/33%)。其中一个页面总是更大(展开),甚至占据控件的全宽度(全屏)。这是有意为之的,因为用户应该清楚地知道在任何给定的时刻应该关注什么,例如,一个项目列表、一个特定的项目、一个项目的详细信息。
关于 FlexibleColumnLayout 的更多介绍,请参考我的 SAP UI5 教程:SAP UI5 应用开发教程之九十七 - 如何使用客户端 JSON 模型构建一个 Master-Detail-Detail 布局中的明细页面
边栏推荐
- Pytoch uses torchnet Classerrormeter in meter
- About LDA model
- Flume common commands and basic operations
- Migrate data from Mysql to neo4j database
- Taobao order amount check error, avoid capital loss API
- Difference between JUnit theories and parameterized tests
- mysql拆分字符串做条件查询
- A possible investment strategy and a possible fuzzy fast stock valuation method
- Keras implements verification code identification
- Resnet18 actual battle Baoke dream spirit
猜你喜欢

关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论

Add a new cloud disk to Huawei virtual machine

Redis clean cache

太方便了,钉钉上就可完成代码发布审批啦!

What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail

Research: data security tools cannot resist blackmail software in 60% of cases

超高效!Swagger-Yapi的秘密

Migrate data from Mysql to neo4j database

《信息系统项目管理师》备考笔记---信息化知识

Four common problems of e-commerce sellers' refund and cash return, with solutions
随机推荐
HiEngine:可媲美本地的云原生内存数据库引擎
Detailed structure and code of inception V3
Distributed cache architecture - cache avalanche & penetration & hit rate
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
Database connection pool & jdbctemplate
Pytoch implements tf Functions of the gather() function
2021.12.16-2021.12.20 empty four hand transaction records
谈谈我写作生涯的画图技巧
DNS的原理介绍
Kotlin function
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
前几年外包干了四年,秋招感觉人生就这样了..
我在滴滴做开源
开发者,云原生数据库是未来吗?
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
Difference between JUnit theories and parameterized tests
Principle of universal gbase high availability synchronization tool in Nanjing University
Migrate data from Mysql to neo4j database
Preliminary exploration of basic knowledge of MySQL
Flume common commands and basic operations