当前位置:网站首页>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 ).
边栏推荐
- Simply take stock reading notes (2/8)
- #yyds干货盘点#js截取文件后缀名
- MySQL 巨坑:update 更新慎用影响行数做判断!!!
- CVPR 2022 | single step 3D target recognizer based on sparse transformer
- 使用 jMeter 对 SAP Spartacus 进行并发性能测试
- SAP UI5 DynamicPage 控件介紹
- 逆波兰表达式
- Compilation principle reading notes (1/12)
- Transactions from December 27 to 28, 2021
- A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
猜你喜欢

Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue

解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107

Taobao short video, why the worse the effect

SAP SEGW 事物码里的 ABAP Editor

I met Tencent in the morning and took out 38K, which showed me the basic smallpox

上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花

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

SAP UI5 DynamicPage 控件介绍

RHCSA1

DNS的原理介绍
随机推荐
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
Halcon 模板匹配实战代码(一)
I'm doing open source in Didi
A deep long article on the simplification and acceleration of join operation
Common commands and basic operations of Apache Phoenix
Kotlin变量
Simply take stock reading notes (2/8)
SAP self-development records user login logs and other information
我在滴滴做开源
RHCSA4
View and modify the MySQL data storage directory under centos7
函数传递参数小案例
CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器
Kotlin流程控制、循环
##无监控,不运维,以下是监控里常用的脚本监控
SAP UI5 FlexibleColumnLayout 控件介绍
Volatile instruction rearrangement and why instruction rearrangement is prohibited
Neural network of PRML reading notes (1)
Setting up sqli lab environment
DNS的原理介绍