SAP UI5 aggregation field type
生活随笔
收集整理的這篇文章主要介紹了
SAP UI5 aggregation field type
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Aggregation里面的toolbar改成用sap.ui.core/Control:
<aggregation cardinality="0..1" name="toolbar" type="sap.ui.core/Control"><documentation>Aggregation that displays tool bar.If the device is desktop/tablet, we use tool bar, if it is phone, we use HBox with simple form. </documentation></aggregation>在Note.js里面,如果是phone screen,把兩個select的寬度改成100%:
this._noteType.setWidth("100%");this._noteTypeForm.addContent(this._noteType);this._noteLangForm.addContent(this._noteLangLabel);this._noteLanguage.setWidth("100%");this._noteLangForm.addContent(this._noteLanguage);Sent: Tuesday, January 13, 2015 11:27 AM
aggregation設成sap.ui.core/Control可以,剛剛build的可能不是最新的:
有點小問題就是select的 width定了30%,在phone上面就太短了
用toolbar下面包simple form不行,只能顯示一個。
現在的code在phone screen上有點問題:
我看了一下control上的aggregation是一個Toolbar:
實際在phone screen下顯示的是一個HBox來模擬toolbar:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP UI5 aggregation field type的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CRM Fiori Launchpad初
- 下一篇: CRM One Order search