/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.commons.form.SimpleForm. sap.ui.define([ 'jquery.sap.global', 'sap/ui/commons/library', 'sap/ui/layout/form/SimpleForm', "./SimpleFormRenderer" ], function(jQuery, library, SimpleForm1, SimpleFormRenderer) { "use strict"; /** * Constructor for a new form/SimpleForm. * * @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 * Use the SimpleForm to create a form based on title, label and fields that are stacked in the content aggregation. Add Title to start a new FormContainer(Group). Add Label to start a new row in the container. Add Input/Display controls as needed. Use LayoutData to influence the layout for special cases in the Input/Display controls. * @extends sap.ui.layout.form.SimpleForm * @version 1.60.23 * * @constructor * @public * @since 1.12 * @deprecated Since version 1.16.0. * moved to sap.ui.layout library. Please use this one. * @alias sap.ui.commons.form.SimpleForm * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel */ var SimpleForm = SimpleForm1.extend("sap.ui.commons.form.SimpleForm", /** @lends sap.ui.commons.form.SimpleForm.prototype */ { metadata : { deprecated : true, library : "sap.ui.commons" }}); ///** //* This file defines behavior for the control, //*/ /* Overwrite to have right "since" in there */ /** * Getter for property layout. * The FormLayout that is used to render the SimpleForm * * Default value is ResponsiveLayout * * @return {sap.ui.commons.form.SimpleFormLayout} the value of property layout * @public * @since 1.14 * @name sap.ui.commons.form.SimpleForm#getLayout * @function */ /** * Setter for property layout. * * Default value is ResponsiveLayout * * @param {sap.ui.commons.form.SimpleFormLayout} oLayout new value for property layout * @return {sap.ui.commons.form.SimpleForm} this to allow method chaining * @public * @since 1.14 * @name sap.ui.commons.form.SimpleForm#setLayout * @function */ return SimpleForm; }, /* bExport= */ true);