Class sap.ui.commons.form.SimpleFormModule: sap/ui/commons/form/SimpleForm

extends SimpleForm

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.

Deprecated API:Since version 1.16.0. moved to sap.ui.layout library. Please use this one.


Since: 1.12.
Constructor Summary
new sap.ui.commons.form.SimpleForm(sId?, mSettings?)Constructor for a new form/SimpleForm.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.commons.form.SimpleForm.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.commons.form.SimpleForm with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.commons.form.SimpleForm.getMetadata()Returns a metadata object for class sap.ui.commons.form.SimpleForm.
getLayout()Getter for property layout.
setLayout(oLayout)Setter for property layout.
Constructor Detail
new sap.ui.commons.form.SimpleForm(sId?, mSettings?)
Constructor for a new form/SimpleForm.
Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.16.0. moved to sap.ui.layout library. Please use this one.
Method Detail
sap.ui.commons.form.SimpleForm.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.form.SimpleForm with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.layout.form.SimpleForm.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.commons.form.SimpleForm.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.commons.form.SimpleForm.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getLayout(): sap.ui.commons.form.SimpleFormLayout
Getter for property layout. The FormLayout that is used to render the SimpleForm

Default value is ResponsiveLayout

Since:
1.14
Returns:
{sap.ui.commons.form.SimpleFormLayout} the value of property layout
setLayout(oLayout): sap.ui.commons.form.SimpleForm
Setter for property layout.

Default value is ResponsiveLayout

Parameters:
{sap.ui.commons.form.SimpleFormLayout}oLayout new value for property layout
Since:
1.14
Returns:
{sap.ui.commons.form.SimpleForm}this to allow method chaining