当前位置:网站首页>Overflow toolbar control in SAP ui5 view
Overflow toolbar control in SAP ui5 view
2022-07-05 12:54:00 【Wang Zixi】
SAP UI5 OverflowToolbar Control , be based on sap.m.Toolbar, The toolbar is provided when its content is not suitable for the display area Overflow Behavior .
When the available space in the visible area of the container is insufficient ,OverflowToolbar The content of will move from right to left to the overflow area . Users can access its contents by opening the overflow button in a pop-up window .
Here is an example :OverflowToolbar Button in , Conditions that can be displayed normally :

Flag and Toggle The button cannot be displayed normally , Only in Overflow Area display :
OverflowToolbar Is an adaptive container , It checks the available width and hides unsuitable parts .
Its purpose is to use simple controls , Such as sap. m.button and sap.m.label As content . Embed other adaptive container controls (sap.m.Breadcrumbs With the exception of ) Will lead to competition for available space —— Both controls calculate the available space based on the size of the other control , And change their width at the same time , The calculation of spatial distribution is incorrect .
The image below shows OverflowToolbar be known as content Of aggregation, It contains three sub controls :
These three sub controls are in detail The defined position in the view :
<m:OverflowToolbar>
<m:ToolbarSpacer/>
<m:Button type="Accept" text="Save"/>
<m:Button type="Reject" text="Cancel"/>
</m:OverflowToolbar>
OverflowToolbar Inherited from sap.m.Toolbar, This is a horizontal container , Most commonly used to display buttons 、 label 、 Selection and various other input controls .
By default , If the toolbar item has a width based on percentage ( for example ,sap.m.input and sap.m.slider) Or realized sap.ui.core.IShrinkable Interface ( for example , sap.m.text and sap.m.label), They are contractible . You can provide sap.m.ToolbarLayoutData To override this behavior .
Developers can use sap.m.toolbarseparator In front and behind sap.m.toolbar Add a visual separator between elements . The separator is related to the topic , It can be filled 、 Margin or line .
To add a horizontal space between toolbar items , Please use sap.m.toolbarspacer. You can define the width of the horizontal space , Or flexibly cover the remaining space between toolbar items ( for example , Push the item to the edge of the toolbar ).
边栏推荐
- Taobao short videos are automatically released in batches without manual RPA open source
- Annotation problem and hidden Markov model
- Talk about my drawing skills in my writing career
- Halcon 模板匹配实战代码(一)
- 自然语言处理从小白到精通(四):用机器学习做中文邮件内容分类
- Kotlin函数
- Insmod prompt invalid module format
- SAP UI5 视图里的 OverflowToolbar 控件
- Super efficient! The secret of swagger Yapi
- Taobao product details API | get baby SKU, main map, evaluation and other API interfaces
猜你喜欢

使用 jMeter 对 SAP Spartacus 进行并发性能测试

Simply take stock reading notes (2/8)

SAP UI5 ObjectPageLayout 控件使用方法分享

深度长文探讨Join运算的简化和提速

CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】

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

Kotlin variable

Pinduoduo flag insertion remarks API

How can non-technical departments participate in Devops?

Setting up sqli lab environment
随机推荐
HiEngine:可媲美本地的云原生内存数据库引擎
A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
深度长文探讨Join运算的简化和提速
SAP self-development records user login logs and other information
I'm doing open source in Didi
Transactions from December 29, 2021 to January 4, 2022
Simply take stock reading notes (4/8)
[cloud native] event publishing and subscription in Nacos -- observer mode
Kotlin variable
超高效!Swagger-Yapi的秘密
Install rhel8.2 virtual machine
实现 1~number 之间,所有数字的加和
10 minute fitness method reading notes (5/5)
ActiveMQ installation and deployment simple configuration (personal test)
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
Rasa Chat Robot Tutorial (translation) (1)
What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail
开发者,云原生数据库是未来吗?
Tips and tricks of image segmentation summarized from 39 Kabul competitions
CVPR 2022 | single step 3D target recognizer based on sparse transformer