Skip to content

Latest commit

 

History

History
52 lines (29 loc) · 1.74 KB

step-13-setting-the-list-detail-pattern-cb38637.md

File metadata and controls

52 lines (29 loc) · 1.74 KB

Step 13: Setting the List-Detail Pattern

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.