当前位置:网站首页>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 ).
边栏推荐
- [cloud native] use of Nacos taskmanager task management
- Introduction to the principle of DNS
- Distributed solution - distributed lock solution - redis based distributed lock implementation
- leetcode:221. 最大正方形【dp状态转移的精髓】
- 以VMware创新之道,重塑多云产品力
- Free testing of Taobao tmall API order and flag insertion remark interface
- Didi open source Delta: AI developers can easily train natural language models
- ActiveMQ installation and deployment simple configuration (personal test)
- SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
- mysql拆分字符串做条件查询
猜你喜欢
随机推荐
Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
以VMware创新之道,重塑多云产品力
NLP engineer learning summary and index
ActiveMQ installation and deployment simple configuration (personal test)
VoneDAO破解组织发展效能难题
A possible investment strategy and a possible fuzzy fast stock valuation method
Introduction to sap ui5 dynamicpage control
Setting up sqli lab environment
10 minute fitness method reading notes (2/5)
RHCSA3
CVPR 2022 | single step 3D target recognizer based on sparse transformer
[cloud native] event publishing and subscription in Nacos -- observer mode
Annotation problem and hidden Markov model
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
jxl笔记
MySQL 巨坑:update 更新慎用影响行数做判断!!!
Wechat enterprise payment to change access, open quickly
Introduction to the principle of DNS
JDBC -- extract JDBC tool classes
《信息系统项目管理师》备考笔记---信息化知识








