Block Layout
Properties of Block Layout
- Id - unique identifier of the control
- Background - use the input help to select the background based from sap.ui.layout.BlockBackgroundType
- Visible - set a boolean value or a variable with type boolean from the Model to control the visibility property
Controls of Block Layout
Block Layout requires additional controls inside of it to make it functional. These controls are Block Layout Row and Block Layout Cell. These can be added by doing a right click from the Block Layout Control.
Properties of Block Layout Row
- Id - unique identifier of the control
- Scrollable - set a boolean value or a variable with type boolean from the Model to control the scrollable property
- Accent Cells - Block Layout Cells that will be accented
Properties of Block Layout Cell
- Id - unique identifier of the control
- Title - title of the cell
- Title Alignment - use the input help to select the alignment of the cell
- Width - width definition (e.g. 100px)
- Style Class - assign a predefined SAPUI5 CSS or a CSS class defined in the CSS of the App
Step-by-step guide
How to add an Block Layout
- Right click on a Page or a Vertical Layout and select Add Layout-→ Add Block Layout
- A Block Layout Control has been added
- Right click on the Block Layout and select Add Block Layout Row
Right click on the created Block Layout Row and select Add Block Layout Cell
Right click on the created Block Layout Cell and select the relevant control to be added. - A control within the Block Layout has been created
Related articles
IQX Business Solutions - FAB 2.40