docs

sap.ui.layout.cssgrid.CSSGrid

The CSSGrid is a flexible layout, based on the two-dimensional, browser-native grid system, using the standard CSS property display with value grid. It allows for flexible positioning of user interface elements, inside horizontal and vertical grid structures.


Overview


The CSSGrid is a powerful grid system that can be configured to display a variable number of columns and rows, depending on the available space. You can achieve complex but flexible layouts for both full-page and in-container page layouts. With the CSSGrid control, you can define a logical two-dimensional grid structure.


Note:

You can use the CSSGrid layout to divide a page into regions or define the size, position, and layer between parts of a control, and easily align elements into columns and rows.

For more information, see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout


You can achieve the desired layout, using a flexible set of configuration properties, including responsive positioning of grid cells along different container break-point sizes.

The grid cells created by the grid layout are empty containers that can be filled with controls.


Usage

The grid layout allows for the placement of multiple elements on the user interface to display structured content. This helps to maintain one coherent experience within pages as well as across all pages and/or layouts.

Features and behaviors are configurable to enable the grid layout for a variety of use cases:

Related Information

API Reference: sap.ui.layout.cssgrid.CSSGrid

Samples: sap.ui.layout.cssgrid.CSSGrid