Skip to content

Latest commit

 

History

History
231 lines (149 loc) · 2.61 KB

provide-the-design-time-metadata-for-the-move-action-2b4fdb2.md

File metadata and controls

231 lines (149 loc) · 2.61 KB

Provide the Design-Time Metadata for the Move Action

Provide the design-time metadata and the meta functions needed when the move 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

aggregations: <object>

->

->

->

->

Describes the aggregations of the element.

<aggregationName> : <object>

->

->

->

Describes the aggregation called <aggregationName>.

domRef: <string | function> (optional)

->

->

Describes the part of your DOM that contains the elements of the aggregation.

For more information, see Aggregation domRef Property.

... other possible properties ...

->

->

For more information, see Aggregation domRef Property.

actions: <object>

->

->

Describes the actions that can be applied to the element.

move: <object | function | string>

->

Provides or computes the change type.

changeType: <string>

Change type for the move action.

Here's an example:

Sample Code:

VerticalLayout.designtime.js

sap.ui.define([], function() {
    "use strict";
    return {
        aggregations: {
            content: {
                domRef: ":sap-domref",
                actions: {
                    move: "moveControls"
                }
            }
        }
    };
});