In this step, we set up the app to follow the list-detail pattern.
Apps using the list-detail pattern operate with a layout divided into two separate areas - a list area and a details area. The list area displays the items available to the user and the details area displays the details for an item that is selected in the list. If your use case requires it, you can set the FlexibleColumnLayout
to use a maximum of two columns. For more information, see the SAP Fiori Design Guidelines.
list-detail pattern with FlexibleColumnLayout
You can view and download all files at Flexible Column Layout App - Step 13.
...
getHelper: function () {
return this._getFcl().then(function(oFCL) {
var oSettings = {
defaultTwoColumnLayoutType: fioriLibrary.LayoutType.TwoColumnsMidExpanded,
defaultThreeColumnLayoutType: fioriLibrary.LayoutType.ThreeColumnsMidExpanded,
initialColumnsCount: 2,
maxColumnsCount: 2
};
return (FlexibleColumnLayoutSemanticHelper.getInstanceFor(oFCL, oSettings));
});
},
...
We set maxColumnsCount
parameter of the getHelper
method to 2
.