loio |
---|
a96fbe44ae6544589a096041f99d38c2 |
view on: demo kit nightly build | demo kit latest release
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