Class sap.ui.layout.form.GridElementDataModule: sap/ui/layout/form/GridElementData
The GridLayout
-specific layout data for FormElement
fields.
Since: 1.16.0.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
In addition, all settings applicable to the base type sap.ui.core.LayoutData can be used as well.
{string} | sId? | Id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.LayoutData.extend.
{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 |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
hCells
. Number of cells in horizontal direction. If set to "auto" the size is determined by the number of fields and the available cells. For labels the auto size is 3 cells. If set to "full" only one field is allowed within the FormElement
. It gets the full width of the row and the label is displayed above. Note: For labels full size has no effect.
Default value is auto
.
{sap.ui.layout.form.GridElementCells} | Value of property hCells |
vCells
. Number of cells in vertical direction. Note: This property has no effect for labels.
Default value is 1
.
{int} | Value of property vCells |
hCells
. Number of cells in horizontal direction. If set to "auto" the size is determined by the number of fields and the available cells. For labels the auto size is 3 cells. If set to "full" only one field is allowed within the FormElement
. It gets the full width of the row and the label is displayed above. Note: For labels full size has no effect.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
{sap.ui.layout.form.GridElementCells} | sHCells | New value for property hCells |
{sap.ui.layout.form.GridElementData} | Reference to this in order to allow method chaining |
vCells
. Number of cells in vertical direction. Note: This property has no effect for labels.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{int} | iVCells | New value for property vCells |
{sap.ui.layout.form.GridElementData} | Reference to this in order to allow method chaining |