Holds layout data for an item inside a sap.f.GridContainer
.
Constructor for a new sap.f.GridContainerItemLayoutData
.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
new sap.f.GridContainerItemLayoutData(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | ID for the new element, generated automatically if no ID is given |
|
mSettings? | object | Initial settings for the new element. |
Name | Type | Default Value | Description |
---|---|---|---|
columns | int | 1 | Specifies the number of columns, which the item should take Note: Make sure that the item does not have more columns than the total columns in the grid. Use sap.f.GridContainer#attachLayoutChange or a resize listener to handle when columns count is changed for the grid. If item has more columns at some point, they will be automatically reduced to the total grid columns. This is done to prevent broken layout (grid blowout) that affects all items. Visibility: public |
minRows | int | Specifies the minimum number of rows, which the item should take. Visibility: public |
|
rows | int | Specifies the number of rows, which the item should take. Visibility: public |
Method | Description |
---|---|
sap.f.GridContainerItemLayoutData.extend |
Creates a new subclass of class sap.f.GridContainerItemLayoutData with name
|
getColumns |
Gets current value of property columns. Specifies the number of columns, which the item should take Note: Make sure that the item does not have more columns than the total columns in the grid. Use sap.f.GridContainer#attachLayoutChange or a resize listener to handle when columns count is changed for the grid. If item has more columns at some point, they will be automatically reduced to the total grid columns. This is done to prevent broken layout (grid blowout) that affects all items. Default value is |
sap.f.GridContainerItemLayoutData.getMetadata |
Returns a metadata object for class sap.f.GridContainerItemLayoutData. |
getMinRows |
Gets current value of property minRows. Specifies the minimum number of rows, which the item should take. |
getRows |
Gets current value of property rows. Specifies the number of rows, which the item should take. |
setColumns |
Sets a new value for property columns. Specifies the number of columns, which the item should take Note: Make sure that the item does not have more columns than the total columns in the grid. Use sap.f.GridContainer#attachLayoutChange or a resize listener to handle when columns count is changed for the grid. If item has more columns at some point, they will be automatically reduced to the total grid columns. This is done to prevent broken layout (grid blowout) that affects all items. When called with a value of Default value is |
setMinRows |
Sets a new value for property minRows. Specifies the minimum number of rows, which the item should take. When called with a value of |
setRows |
Sets a new value for property rows. Specifies the number of rows, which the item should take. When called with a value of |
Creates a new subclass of class sap.f.GridContainerItemLayoutData 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.core.LayoutData.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Gets current value of property columns.
Specifies the number of columns, which the item should take
Note: Make sure that the item does not have more columns than the total columns in the grid. Use sap.f.GridContainer#attachLayoutChange or a resize listener to handle when columns count is changed for the grid. If item has more columns at some point, they will be automatically reduced to the total grid columns. This is done to prevent broken layout (grid blowout) that affects all items.
Default value is 1
.
Returns a metadata object for class sap.f.GridContainerItemLayoutData.
Gets current value of property minRows.
Specifies the minimum number of rows, which the item should take.
Gets current value of property rows.
Specifies the number of rows, which the item should take.
Sets a new value for property columns.
Specifies the number of columns, which the item should take
Note: Make sure that the item does not have more columns than the total columns in the grid. Use sap.f.GridContainer#attachLayoutChange or a resize listener to handle when columns count is changed for the grid. If item has more columns at some point, they will be automatically reduced to the total grid columns. This is done to prevent broken layout (grid blowout) that affects all items.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
Param | Type | DefaultValue | Description |
---|---|---|---|
iColumns | int | 1 |
New value for property |
Sets a new value for property minRows.
Specifies the minimum number of rows, which the item should take.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
iMinRows | int |
New value for property |
Sets a new value for property rows.
Specifies the number of rows, which the item should take.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
iRows | int |
New value for property |