Class sap.ui.commons.layout.MatrixLayoutCellModule: sap/ui/commons/layout/MatrixLayoutCell
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
. 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
- backgroundDesign : sap.ui.commons.layout.BackgroundDesign (default: Transparent)
- colSpan : int (default: 1)
- hAlign : sap.ui.commons.layout.HAlign (default: Begin)
- padding : sap.ui.commons.layout.Padding (default: End)
- rowSpan : int (default: 1)
- separation : sap.ui.commons.layout.Separation (default: None)
- vAlign : sap.ui.commons.layout.VAlign (default: Middle)
- Aggregations
- content : sap.ui.core.Control[] (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 |
content
. {sap.ui.core.Control} | oContent | the content to add; if empty, nothing is inserted |
{sap.ui.commons.layout.MatrixLayoutCell} | 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.MatrixLayoutCell} |
content
. {sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
backgroundDesign
. Determines the matrix layout cell's background design.
Default value is Transparent
.
{sap.ui.commons.layout.BackgroundDesign} | Value of property backgroundDesign |
colSpan
. Determines how many columns of the underlying grid structure are occupied by this matrix layout cell.
Default value is 1
.
{int} | Value of property colSpan |
content
. The matrix layout cell's content (arbitrary controls).
If the matrix row has a defined height and the matrix has layoutFixed = true, the controls inside of a cell should all use the same unit for its height property.
{sap.ui.core.Control[]} |
hAlign
. Determines the horizontal alignment of the matrix layout cell's content with the cell's borders.
Default value is Begin
.
{sap.ui.commons.layout.HAlign} | Value of property hAlign |
padding
. Determines the padding of the matrix layout cell's content within the cell's borders. The default value is appropriate for all cells in a form-like layout. Consider to remove the padding on the outer layout in case of nesting.
Default value is End
.
{sap.ui.commons.layout.Padding} | Value of property padding |
rowSpan
. Determines how many rows of the underlying grid structure are occupied by this matrix layout cell. In case a row-height is used, all rows affected by the RowSpan must have the same unit.
Default value is 1
.
{int} | Value of property rowSpan |
separation
. Determines how a matrix layout cell is separated from its predecessor, via a vertical gutter of variable width, with or without a vertical line.
Default value is None
.
{sap.ui.commons.layout.Separation} | Value of property separation |
vAlign
. Determines the vertical alignment of the matrix layout cell's content with the cell's borders.
Default value is Middle
.
{sap.ui.commons.layout.VAlign} | Value of property vAlign |
{string} | sStyleClass | the style to check for |
{boolean} |
sap.ui.core.Control
in the aggregation content
. and returns its index if found or -1 otherwise. {sap.ui.core.Control} | oContent | The content whose index is looked for |
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
content
. {sap.ui.core.Control} | oContent | the content to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the content should be inserted at; for a negative value of iIndex , the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
content
. Additionally, it unregisters them from the hosting UIArea.
{sap.ui.core.Control[]} | An array of the removed elements (might be empty) |
content
. {int|string|sap.ui.core.Control} | vContent | The contentto remove or its index or id |
{sap.ui.core.Control} | The removed content or null |
Returns this
to allow method chaining
{string} | sStyleClass | the style to be removed |
{sap.ui.commons.layout.MatrixLayoutCell} |
backgroundDesign
. Determines the matrix layout cell's background design.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Transparent
.
{sap.ui.commons.layout.BackgroundDesign} | sBackgroundDesign | New value for property backgroundDesign |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
colSpan
. Determines how many columns of the underlying grid structure are occupied by this matrix layout cell.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{int} | iColSpan | New value for property colSpan |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
hAlign
. Determines the horizontal alignment of the matrix layout cell's content with the cell's borders.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Begin
.
{sap.ui.commons.layout.HAlign} | sHAlign | New value for property hAlign |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
padding
. Determines the padding of the matrix layout cell's content within the cell's borders. The default value is appropriate for all cells in a form-like layout. Consider to remove the padding on the outer layout in case of nesting.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is End
.
{sap.ui.commons.layout.Padding} | sPadding | New value for property padding |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
rowSpan
. Determines how many rows of the underlying grid structure are occupied by this matrix layout cell. In case a row-height is used, all rows affected by the RowSpan must have the same unit.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{int} | iRowSpan | New value for property rowSpan |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
separation
. Determines how a matrix layout cell is separated from its predecessor, via a vertical gutter of variable width, with or without a vertical line.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is None
.
{sap.ui.commons.layout.Separation} | sSeparation | New value for property separation |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |
vAlign
. Determines the vertical alignment of the matrix layout cell's content with the cell's borders.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Middle
.
{sap.ui.commons.layout.VAlign} | sVAlign | New value for property vAlign |
{sap.ui.commons.layout.MatrixLayoutCell} | Reference to this in order to allow method chaining |