Class sap.ui.layout.form.ResponsiveLayoutModule: sap/ui/layout/form/ResponsiveLayout

extends FormLayout
known direct subclasses: ResponsiveLayout

Renders a Form with a responsive layout. Internally the ResponsiveFlowLayout is used. The responsiveness of this layout tries to best use the available space. This means that the order of the FormContainers, labels and fields depends on the available space.

On the FormContainers, FormElements, labels and content fields, ResponsiveFlowLayoutData can be used to change the default rendering.

We suggest using the ResponsiveGridLayout instead of this layout because this is easier to consume and brings more stable responsive output.

Note: If ResponsiveFlowLayoutData are used this may result in a much more complex layout than the default one. This means that in some cases, the calculation for the other content may not bring the expected result. In such cases, ResponsiveFlowLayoutData should be used for all content controls to disable the default behavior.

This control cannot be used stand alone, it only renders a Form, so it must be assigned to a Form.


Since: 1.16.0.
Constructor Summary
new sap.ui.layout.form.ResponsiveLayout(sId?, mSettings?)Constructor for a new sap.ui.layout.form.ResponsiveLayout.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.layout.form.ResponsiveLayout.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.layout.form.ResponsiveLayout with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.layout.form.ResponsiveLayout.getMetadata()Returns a metadata object for class sap.ui.layout.form.ResponsiveLayout.
Constructor Detail
new sap.ui.layout.form.ResponsiveLayout(sId?, mSettings?)
Constructor for a new sap.ui.layout.form.ResponsiveLayout.
Parameters:
{string}sId? Id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Method Detail
sap.ui.layout.form.ResponsiveLayout.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.layout.form.ResponsiveLayout 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.FormLayout.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.layout.form.ResponsiveLayout.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.layout.form.ResponsiveLayout.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class