当前位置:网站首页>SAP UI5 DynamicPage 控件介绍
SAP UI5 DynamicPage 控件介绍
2022-07-05 12:39:00 【汪子熙】
该控件从 SAP UI5 1.42 版开始可用。DynamicPage 是一个布局控件,由标题、具有动态行为的标题、内容区域和可选的浮动页脚组成。

该控件由几个组件组成:
DynamicPageTitle - 由左侧的标题、中间的内容和右侧的操作组成。 显示的内容会根据 DynamicPageHeader 的当前模式而变化。
DynamicPageHeader - 一个通用容器,可以包含单个布局控件并且不关心内容对齐和响应性。 标头在两种模式下工作 - 展开模式(expanded)和收起模式(snapped),并且可以借助不同的属性调整其行为。
内容区域 - 一个通用容器,可以有单个 UI5 布局控件,不用关心内容对齐和响应性。
页脚 - 位于底部,有一个小的偏移量,用于附加操作,页脚浮动在内容上方。 它可以是任何 sap.m.IBar 控件。
如果需求是显示一个始终可见的标题和一个具有可配置扩展/对齐功能的标题,请使用 DynamicPage。相反的,不需要扩展/对齐功能,最好使用 sap.m.Page 作为较轻的控件。
如果显示的 sap.m.FlexBox 具有非自适应内容(不会拉伸以填充可用空间),建议将 FlexBox 的 fitContainer 属性设置为 false。
如果您正在显示 sap.ui.table.Table,请记住它是非自适应的,并且可能会导致 DynamicPage 在较小的屏幕尺寸(例如移动设备)上出现不可预测的行为。应该使用 sap.m 命名空间下的 Table 控件。
在以下情况下不支持将 DynamicPageTitle 收起(snap): 当 DynamicPage 有滚动条时,控件通常会滚动到 snap point 的位置 。但是,当有滚动条但没有足够的内容到达 snap point 时,无法使用滚动进行收起操作。
在DynamicPage的内容中使用 sap.ui.layout.form.Form、sap.m.Panel、sap.m.Table和sap.m.List控件时,如果要实现垂直方向的文字内容对齐,需要调整它们的左文字偏移量 sap.f.DynamicPageHeader 的内容和 DynamicPage 的内容之间的对齐。
响应行为:DynamicPage 的响应行为取决于所显示内容的行为。要调整 DynamicPage 内容填充,可以使用 sapUiContentPadding、sapUiNoContentPadding 和 sapUiResponsiveContentPadding CSS 类。

边栏推荐
- Simply take stock reading notes (3/8)
- Research: data security tools cannot resist blackmail software in 60% of cases
- 由扫地增而引起的小叙
- Pytoch loads the initialization V3 pre training model and reports an error
- Alipay transfer system background or API interface to avoid pitfalls
- A deep long article on the simplification and acceleration of join operation
- Redis clean cache
- From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
- Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
- RHCSA5
猜你喜欢

Resnet+attention project complete code learning

开发者,云原生数据库是未来吗?

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

SAP 自开发记录用户登录日志等信息

2021.12.16-2021.12.20 empty four hand transaction records

在家庭智能照明中应用的测距传感芯片4530A

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

Transactions from January 14 to 19, 2022

Simply take stock reading notes (2/8)

Transactions from December 29, 2021 to January 4, 2022
随机推荐
Distributed solution - Comprehensive decryption of distributed task scheduling platform - xxljob scheduling center cluster
10 minute fitness method reading notes (3/5)
Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
jxl笔记
RHCSA4
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
SAP 自开发记录用户登录日志等信息
RHCSA3
Detailed steps for upgrading window mysql5.5 to 5.7.36
Transactions on December 23, 2021
A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
Ecplise development environment configuration and simple web project construction
Neural network of PRML reading notes (1)
How can labels/legends be added for all chart types in chart. js (chartjs.org)?
RHCAS6
Notes for preparation of information system project manager --- information knowledge
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
Pytoch uses torchnet Classerrormeter in meter
Distributed solution - completely solve website cross domain requests
研究:数据安全工具在 60% 的情况下无法抵御勒索软件