当前位置:网站首页>Manifest of SAP ui5 framework json

Manifest of SAP ui5 framework json

2022-07-06 17:48:00 InfoQ

link :https://sapui5.hana.ondemand.com/resources/sap/ui/core/manifest.json

from  
ApplicationVersion
  You can get it in  SAP UI5  The latest version of the framework :
1.101.0

null
This latest version can also be found in the link below :https://sapui5.hana.ondemand.com/

null
openSourceComponents
  You can get it in  SAP UI5  Version numbers of all open source libraries used :

null
Supported by  locale:

null
sap ui core  Supported controls , Elements , The type and interface are shown in the following figure :

null

controls

Application developers do not directly  XML  Use these controls in the view . But based on these  core  Control extension , Create your own extension control , And then in  XML  Use extended controls in views .

null

elements

With  
sap.ui.core.CustomData
  For example , This element contains a single key for the custom data attached to the element / It's worth it .SAPUI5  Provide  data()  Method to attach a data object to a control .

data()  The method is contained in  
sap/ui/core/Element
  in .  Developers can use this method to set up and get data .  The  API  Equivalent to  jQuery.data().

The following additional options can be used to attach data to  SAPUI5  Control :

  • stay  XML  The view and  JSON  Attach data declaratively to the view .
  • Use data binding , See data binding .
  • Applies only to strings : Take data as  
    data-*
      Attribute write  HTML DOM

null
Example :

myButton.data("myData", "Hello"); // attach some data to the Button

alert(myButton.data("myData")); // alerts "Hello"

var dataObject = myButton.data(); // a JS object containing ALL data
alert(dataObject.myData); // alerts "Hello"

types

With  
sap.ui.core.Design
  For example :[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-25Pxl9nI-1653892105706)(https://upload-images.jianshu.io/upload_images/2085791-2fd0d115221eef7b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

This is an enumeration type ,  Optional values are  
Monospace
  and  
Standard
  Two kinds of :

null

interfaces

null
With  
sap.ui.core.IFormContent
  For example : It can be used as  sap.ui.layout.form.Form  or  sap.ui.layout.form.SimpleForm  The markup interface of the content control .

If  Form  Control cannot adjust the width of the control to meet the width of the cell , The control must implement  getFormDoNotAdjustWidth  Function and return  true.

sap.ui.core.IShrinkable:  fit  shrink  Interface of the control .

This means that when the control becomes smaller than its normal size , It should maintain its normal appearance , For example, in the case of contraction , Text controls that still display ellipsis .

Note that this markup interface can be implemented through a control , So as to give the container a hint .  The control itself does not need to implement anything . Resolving the parent control of this interface will apply  
flex-shrink
  As  CSS  attribute , This attribute determines when allocating negative free space , How much the item will shrink relative to the rest of the items in the container .
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060938487771.html