Class sap.ui.commons.layout.MatrixLayoutRowModule: sap/ui/commons/layout/MatrixLayoutRow
Non-control element used as part of a matrix layout's inner structure.
Deprecated API:Since version 1.38. Instead, use the sap.ui.layout.Grid
control.
sClassName
and enriches it with the information contained in oClassInfo
.sap.ui.commons.layout.MatrixLayoutCell
in the aggregation cells
. 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:
- Properties
- height : sap.ui.core.CSSSize
- Aggregations
- cells : sap.ui.commons.layout.MatrixLayoutCell[] (default)
In addition, all settings applicable to the base type sap.ui.core.Element 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 |
- Deprecated:
- Since version 1.38. Instead, use the
sap.ui.layout.Grid
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.Element.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 |
cells
. {sap.ui.commons.layout.MatrixLayoutCell} | oCell | the cell to add; if empty, nothing is inserted |
{sap.ui.commons.layout.MatrixLayoutRow} | Reference to this in order to allow method chaining |
This method is intended to be used to mark controls as being of a special type for which special styling can be provided using CSS selectors that reference this style class name.
Example: myButton.addStyleClass("myRedTextButton"); // add a CSS class to one button instance ...and in CSS: .myRedTextButton { color: red; }
This will add the CSS class "myRedTextButton" to the Button HTML and the CSS code above will then make the text in this particular button red.
Only characters allowed inside HTML attributes are allowed. Quotes are not allowed and this method will ignore any strings containing quotes. Strings containing spaces are interpreted as ONE custom style class (even though CSS selectors interpret them as different classes) and can only removed later by calling removeStyleClass() with exactly the same (space-containing) string as parameter. Multiple calls with the same sStyleClass will have no different effect than calling once. If sStyleClass is null, the call is ignored.
Returns this
to allow method chaining
{string} | sStyleClass | the CSS class name to be added |
{sap.ui.commons.layout.MatrixLayoutRow} |
cells
. {sap.ui.commons.layout.MatrixLayoutRow} | Reference to this in order to allow method chaining |
cells
. The matrix layout row's individual cells.
{sap.ui.commons.layout.MatrixLayoutCell[]} |
height
. Height of the row.
{sap.ui.core.CSSSize} | Value of property height |
{string} | sStyleClass | the style to check for |
{boolean} |
sap.ui.commons.layout.MatrixLayoutCell
in the aggregation cells
. and returns its index if found or -1 otherwise. {sap.ui.commons.layout.MatrixLayoutCell} | oCell | The cell whose index is looked for |
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
cells
. {sap.ui.commons.layout.MatrixLayoutCell} | oCell | the cell to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the cell should be inserted at; for a negative value of iIndex , the cell is inserted at position 0; for a value greater than the current size of the aggregation, the cell is inserted at the last position |
{sap.ui.commons.layout.MatrixLayoutRow} | Reference to this in order to allow method chaining |
cells
. Additionally, it unregisters them from the hosting UIArea.
{sap.ui.commons.layout.MatrixLayoutCell[]} | An array of the removed elements (might be empty) |
cells
. {int|string|sap.ui.commons.layout.MatrixLayoutCell} | vCell | The cellto remove or its index or id |
{sap.ui.commons.layout.MatrixLayoutCell} | The removed cell or null |
Returns this
to allow method chaining
{string} | sStyleClass | the style to be removed |
{sap.ui.commons.layout.MatrixLayoutRow} |
height
. Height of the row.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sHeight | New value for property height |
{sap.ui.commons.layout.MatrixLayoutRow} | Reference to this in order to allow method chaining |