Provide the design-time metadata and the meta functions needed when the createContainer 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 createContainer action to show the container title in the context menu (Create <singular>) and to show the default title when a new container is created (New <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 |
||||
|
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([], function() { "use strict"; return { aggregations: { groups: { childNames: { singular: "GROUP_CONTROL_NAME" // mandatory plural: "GROUP_CONTROL_NAME_PLURAL" // recommended }, actions: { createContainer: { changeType: "addGroup" // mandatory } } } } }; });