当前位置:网站首页>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 类。
边栏推荐
- Redis clean cache
- HiEngine:可媲美本地的云原生内存数据库引擎
- Redis cluster configuration
- Taobao order amount check error, avoid capital loss API
- 2021-12-22 transaction record
- Pytorch two-layer loop to realize the segmentation of large pictures
- Notes for preparation of information system project manager --- information knowledge
- 自然语言处理系列(一)入门概述
- Making and using the cutting tool of TTF font library
- Why is your next computer a computer? Explore different remote operations
猜你喜欢
Constructing expression binary tree with prefix expression
stirring! 2022 open atom global open source summit registration is hot!
Install rhel8.2 virtual machine
Pytorch two-layer loop to realize the segmentation of large pictures
Database connection pool & jdbctemplate
Distributed cache architecture - cache avalanche & penetration & hit rate
石臻臻的2021总结和2022展望 | 文末彩蛋
Pytoch loads the initialization V3 pre training model and reports an error
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
【Nacos云原生】阅读源码第一步,本地启动Nacos
随机推荐
Pinduoduo flag insertion remarks API
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
View and terminate the executing thread in MySQL
奔跑,开路
What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail
自然语言处理系列(一)入门概述
Pytoch counts the number of the same elements in the tensor
Ecplise development environment configuration and simple web project construction
Install rhel8.2 virtual machine
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
insmod 提示 Invalid module format
【云原生】Nacos中的事件发布与订阅--观察者模式
Sqoop import and export operation
Super efficient! The secret of swagger Yapi
CVPR 2022 | single step 3D target recognizer based on sparse transformer
RHCSA1
Wechat enterprise payment to change access, open quickly
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
我在滴滴做开源
10 minute fitness method reading notes (3/5)