Provide the design-time metadata and the meta functions needed when the addIFrame action is performed.
The name of the design-time metadata file is <control>.designtime.js
. The module returns an object literal with the following properties:
Property (Level 1) |
Property (Level 2) |
Property (Level 3) |
Property (Level 4) |
Property (Level 5) |
Description |
---|---|---|---|---|---|
|
-> |
-> |
-> |
-> |
Describes the aggregations of the element. |
|
-> |
-> |
-> |
Describes the aggregation called |
|
... other possible properties ... |
-> |
-> |
For more information, see Providing Design-Time Metadata. |
||
|
-> |
-> |
Provide or compute a name for the controls inside the aggregation, which is understandable for the key user. This is needed for the addIFrame action to show the container title in the context menu (Embed Content to: <singular>) . Currently only singular is required, but adding a value for the plural makes the implementation future-proof. Name your control based on the general UI concept and follow the SAP Fiori Design Guidelines. Example: Key users don't care about the difference between a smart, mobile, or responsive version of a form - they just call it "form". |
||
|
-> |
|
|||
|
-> |
|
|||
|
-> |
-> |
Describes the actions that can be applied to the element: |
||
|
-> |
Provides or computes the design-time metadata specific to the createContainer action for an element as an object with the following properties. |
|||
|
Provides the value of |
||||
|
Provides the text to be shown in the context menu. It will be used after |
||||
|
Default is If under some boundary conditions you can't create containers inside, it returns |
||||
|
Defaults to the ID of the newly created container. If the |
Here's an example:
<control>.designtime.js
sap.ui.define(["sap/ui/core/Lib"], function(Lib) { "use strict"; return { aggregations: { headerContent: { childNames : { singular : function(){ return Lib.getResourceBundleFor("sap.uxap").getText("HEADER_CONTROL_NAME"); } }, actions : { addIFrame: { changeType: "addIFrame" } } } } }; });