当前位置:网站首页>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 ).
边栏推荐
猜你喜欢
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
Preliminary exploration of basic knowledge of MySQL
SAP UI5 ObjectPageLayout 控件使用方法分享
深度长文探讨Join运算的简化和提速
Comprehensive upgrade of Taobao short video photosynthetic platform
Transactions from January 6 to October 2022
逆波兰表达式
自然语言处理系列(一)入门概述
Transactions from January 14 to 19, 2022
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
随机推荐
Why is your next computer a computer? Explore different remote operations
函数传递参数小案例
946. 验证栈序列
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
Compile kernel modules separately
VoneDAO破解组织发展效能难题
What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail
LeetCode20.有效的括号
[cloud native] event publishing and subscription in Nacos -- observer mode
谈谈我写作生涯的画图技巧
Kotlin function
自然语言处理系列(一)入门概述
Halcon 模板匹配实战代码(一)
Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
jxl笔记
Introduction to sap ui5 dynamicpage control
【Nacos云原生】阅读源码第一步,本地启动Nacos
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)