One of the main advantages of SAPUI5 is that it offers UI controls already designed for responsiveness.
Controls available in the sap.m library are indeed designed for mobility.
For example, the sap.m.Table control provides a set of sophisticated and easy-to-use functions for responsive table design. The sap.m.Column used as aggregation in the Table control allows to define column specific properties that will manage responsiveness. Here are some of those properties :
- minScreenWidth
Defines the minimum screen width to show or hide this column. By default column is always shown. The responsive behavior of the sap.m.Table is determined by this property. As an example by setting minScreenWidth property to "40em" (or "640px" or "Tablet") shows this column on tablet (and desktop) but hides on mobile.
- demandPopin
According to your minScreenWidth settings, the column can be hidden in different screen sizes. Setting this property to true, shows this column as pop-in instead of hiding it. Meaning the columns to hide will be displayed below the actual table row, one below the other.
An alternative would be to set the autoPopinMode of the table to true and manage each column importance property.
Combined with alignment properties and the width property to fix a specific size for a column, no matter what the screen size is, it ensures that the data will be displayed correctly whatever device is used.