@openui5/sap.ui.core
Version:
OpenUI5 Core Library sap.ui.core
47 lines (36 loc) • 1.28 kB
JavaScript
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.core.VariantLayoutData.
sap.ui.define(['./LayoutData', './library'],
function(LayoutData) {
"use strict";
/**
* Constructor for a new VariantLayoutData.
*
* @param {string} [sId] id for the new control, generated automatically if no id is given
* @param {object} [mSettings] initial settings for the new control
*
* @class
* Allows to add multiple LayoutData to one control in case that an easy switch of layouts (e.g. in a Form) is needed.
* @extends sap.ui.core.LayoutData
* @version 1.87.1
*
* @public
* @since 1.9.2
* @alias sap.ui.core.VariantLayoutData
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
*/
var VariantLayoutData = LayoutData.extend("sap.ui.core.VariantLayoutData", /** @lends sap.ui.core.VariantLayoutData.prototype */ { metadata : {
library : "sap.ui.core",
aggregations : {
/**
* Allows multiple LayoutData.
*/
multipleLayoutData : {type : "sap.ui.core.LayoutData", multiple : true, singularName : "multipleLayoutData"}
}
}});
return VariantLayoutData;
});