SAP UI5 aggregation field type

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/88852298

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的可能不是最新的:

clipboard1

有点小问题就是select的 width定了30%,在phone上面就太短了

用toolbar下面包simple form不行,只能显示一个。

现在的code在phone screen上有点问题:

clipboard2

我看了一下control上的aggregation是一个Toolbar:

clipboard3

实际在phone screen下显示的是一个HBox来模拟toolbar:

clipboard4

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/88852298