Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 2.49 KB

Step_12_Starting_with_Two_Columns_a96fbe4.md

File metadata and controls

65 lines (39 loc) · 2.49 KB
loio
a96fbe44ae6544589a096041f99d38c2

Step 12: Starting with Two Columns

In this step, we set up the app to start with an initial layout of two columns.

By default, the FlexibleColumnLayout starts off with one column. If your use case requires it, you can set the initial layout to start with two columns. The user can still navigate to a single-column layout by closing the detail page from the navigation actions or a three-column layout by selecting an item from the detail page.


Initial layout with two columns


You can view and download all files at Flexible Column Layout App - Step 12.


		...
		getHelper: function () {
			return this._getFcl().then(function(oFCL) {
				var oSettings = {
					defaultTwoColumnLayoutType: fioriLibrary.LayoutType.TwoColumnsMidExpanded,
					defaultThreeColumnLayoutType: fioriLibrary.LayoutType.ThreeColumnsMidExpanded,
					initialColumnsCount: 2
				};
				return (FlexibleColumnLayoutSemanticHelper.getInstanceFor(oFCL, oSettings));
			 });
		},
		...

We set the initialColumnsCount parameter of the getHelper method to 2.

Parent topic:Flexible Column Layout App Tutorial

Next:Step 11: Using the Flexible Column Layout Semantic Helper

Previous:Step 13: Setting the List-Detail Pattern