Updated: March 17, 2021

Flexible Column Layout (Layout + SAP Fiori Elements)

sap.f.FlexibleColumnLayout

Intro

The flexible column layout is a layout control that displays multiple floorplans on a single page. This allows faster and more fluid navigation between multiple floorplans than the usual page-by-page navigation. The flexible column layout offers different layouts with up to three columns. Users can expand the column they want to focus on, switch between different layouts, and view the rightmost column in full screen mode.

Flexible column layout - Example with three columns
Flexible column layout - Example with three columns

The flexible column layout behaves responsively, which makes it suitable for both desktop and mobile devices. Depending on the available screen width, an optimized layout is loaded to ensure the best possible user experience on each device. The flexible column layout is a generic control. As a layout container, it does not provide any content itself.

The flexible column layout is already incorporated within SAP Fiori elements.

Usage

Use the flexible column layout if:

  • You want to create a master-detail or master-detail-detail scenario in which the user can drill down or navigate.

Do not use the flexible column layout if:

  • You want to build a workbench or tools layout. The flexible column layout is not meant to provide a main column with additional side columns on the left and/or right. If you want to display additional content to enrich the main content and to help users better perform their tasks, use the dynamic side content instead.
  • You want to create a dashboard with context-independent pages.
  • You want to open multiple instances of the same object type. Use the multi-instance handling floorplan instead.
  • You want to split a single object into multiple columns, or display only a small amount of information.
  • You want to embed the SAP Fiori launchpad or overview page into one of the columns.

Structure

As with all layouts, the flexible column layout is embedded in the shell bar of the SAP Fiori launchpad. From the shell bar, users have access to the launchpad services, including the home page, search, settings, and help. Apps are embedded in the shell and have little influence over its features. The shell bar also provides the back navigation and the app title, including the navigation menu.

Depending on the current layout and display size, the flexible column layout consists of one, two, or three horizontally-aligned columns. Each column contains content that is not provided by the flexible column layout itself. The flexible column layout is not restricted to a specific floorplan, as long as the floorplan you use is responsive down to phone size. However, we recommend using the dynamic page.

Information
It is not possible to use the SAP Fiori launchpad or the overview page in one of the columns.

Possible Layouts

To give users a better overview, the flexible column layout offers different layouts with one, two, or three columns. Depending on the screen size, up to five different base layouts are available.

Information

Language Dependency

For simplicity, this article assumes that the last column (the lowest drilldown level in the hierachy) is the rightmost column (left-to-right languages).

For right-to-left languages, however, the last column is the leftmost column.

Flexible column layout - Structure example (25% + 50% + 25%)
Flexible column layout - Structure example (25% + 50% + 25%)

Size L and XL (Desktop)

There are five different layouts in sizes L and XL: a full screen layout, as well as two different 2-column and 3-column layouts.

Available layouts in sizes L and XL
Available layouts in sizes L and XL

Size M (Tablet)

There are three different layouts in size M: a full screen layout and two different 2-column layouts. There is no 3-column layout due to the limited width. However, you can still load 3 pages in size M. Instead of showing them all side-by-side, the user can switch between columns 1/2 and 2/3.

Available layouts in size M
Available layouts in size M

Size S (Phone)

Because of the limited width, there is no multi-column layout for Size S. Instead, the rightmost column is shown in full screen mode.

Available layout in size S
Available layout in size S

Components

The flexible column layout uses a few simple actions let users to adapt the current layout according to their needs.

Note: Some of the actions (illustrated by blue lines in the image below) recover the last state of the layout to which they refer. In other words, the result of the action depends on the previous state of the layout.

Layout Arrow

The layout arrows allow users to expand the width of a given column, thereby changing the current layout. However, this action cannot be used to expand a column to full screen mode. There is a separate action for expanding a column to full screen mode.

The layout arrow is located next to the divider and points in the direction in which a column can be expanded. If a column cannot be expanded any further, the action is hidden.

Information
The user cannot change the size of a column freely (for example, 15% + 85%).

Enter Full Screen Mode

With the Enter Full Screen icon  , the user can switch the rightmost column to full screen mode. The action is located in the rightmost column, and is only offered if there is more than one column.

Exit Full Screen Mode

By selecting the Exit Full Screen icon  , the user can exit the full screen and switch back to the multi-column (side-by-side) view. The action is only available while in full screen mode.

Information
The actions are not available in size S, which only displays a single column.

Close

With the Close icon   , the user can close the last (rightmost) column. If the user selects this action in the second column while the third column is minimized, both columns are closed. Close is also available in full screen mode, and in the second/third column for size S.

Information

The Close and Enter Full Screen / Exit Full Screen actions:

  • Are only displayed in the third column (or in the second column if there is no third column, or if the third column is minimized).
  • Are displayed as the last actions in the layout action section (or in the global actions toolbar if there is no layout action section in the floorplan). The layout action section is displayed to the right of the global actions on columns ≥1280 px wide, and in a separate line above the global actions on columns <1280 px wide.
  • Never move into the overflow.
  • Are always shown side-by-side (Enter Full Screen / Exit Full Screen icon left, Close icon right).
    Exception: There is no Enter Full Screen action in size S.

Developer Hint
The actions for entering and exiting full screen mode and closing columns are not provided automatically by the flexible column layout control, and need to be implemented manually. However, you can use the semantic page, which supports these actions for freestyle applications (only available with the dynamic page).

Navigation

In addition to the actions specific to the flexible column layout, the user can also use the forward and backward navigation to navigate through the flexible column layout. Drilling in or navigating forward opens a new column, while Back closes a column or exits the full screen mode (depending on what the last action was).
Please note: Back does not restore layout changes (such as switching from 33% + 67% to 67% + 33%).

Because the flexible column layout only supports a maximum of 3 columns, any follow-on pages are loaded in full screen mode. These pages do not contain Close or Enter Full Screen / Exit Full Screen actions.

By default, the width is initially 33% for the second column and 25% for the third column. You can also set the width of the second column to 67%, or the third to 50% if your use case requires it.

Developer Hint
To implement the navigation/routing, you can use the SemanticHelper class, which provides predefined behavior to simplify the implementation.

Responsiveness

The flexible column layout changes its behavior for sizes XL, L, M and S in real time whenever the user resizes the screen.

If no previous state has been saved, ensure that the default layout appears automatically. For example, if the flexible column layout was initially loaded in size S and the user then navigates to the second column and changes the browser window to size M, show the default 2-column layout for size M (67% + 33%).

Responsiveness of the flexible column layout
Responsiveness of the flexible column layout

Behavior and Interaction

Dialogs

Dialogs triggered in one of the columns are centered over the entire screen.

Do
Center dialogs triggered in a column
Center dialogs triggered in a column
Don't
Do not right-align dialogs triggered in a column
Do not right-align dialogs triggered in a column

Vertical Size / Scrolling

Each column inside the flexible column layout contains an independent floorplan with its own scrolling behavior. There is no “all-encompassing” scrollbar which scrolls all columns simultaneously. The height of each floorplan is defined by the screen size.

Do
Give each column its own scrollbar
Give each column its own scrollbar
Don't
There is no universal scrollbar for all columns
There is no universal scrollbar for all columns

Two Columns (Master-Detail Mode)

By default, the flexible column layout starts off with one column. The user opens new columns by navigating forward. Since the flexible column layout is the successor of the split-screen layout, you can also use just two columns if your use case requires it. Do not start your application with three columns. Too much information at the beginning can confuse users.

Note:

  • If you start with two columns, make sure that size S shows the first column. Otherwise, users see the second column first, which might be confusing. (Showing the second column is the normal responsive behavior of the flexible column layout, which always shows the last column in size S.)
  • Even if you start with two columns, offer the layout arrow and the Close action in the second column.
Examples: Starting with two columns (sizes L and XL)
Examples: Starting with two columns (sizes L and XL)

Titles / Breadcrumbs / Up and Down Arrows

If more than one column is visible, show the application title in the shell bar. If the user switches to full screen mode, show the page title. Also show the page title for size S, where only one column is visible.

If multiple columns are visible, hide the breadcrumbs and up/down arrows.

Application title in the shell bar
Application title in the shell bar
Page title in the shell bar
Page title in the shell bar

Bookmarks

Every layout inside the flexible column layout can be bookmarked. For example, if the user bookmarks a 3-column layout set to 25% + 50% + 25%, load this layout when the user opens the bookmark.

Minimized Third Column

When the user expands the first column in a 3-column layout, the third column is minimized. CloseEnter Full Screen, and layout arrow actions also appear on the right-hand border of the second column to allow the user to return to the original 3-column layout.

Close: The second and third (minimized) columns close. A dialog can appear to warn the user about any unsaved data in the third column.

Full screen: When the user clicks the Enter Full Screen icon, the second column switches to full screen mode. The third column remains open (but not visible), and closes as soon as the user selects another item in the second column, or uses the Close action in the second column. If the user selects the same item in the second column, it opens in the same state as before it was minimized.

Layout arrow: The arrow for changing the layout to 25% + 50% + 25% is only available in the 33% + 67% layout. This arrow is hidden if the user is changing the layout to 67% + 33%.

Example of a minimized third column (33% + 67%)
Example of a minimized third column (33% + 67%)

Using Close in Combination with Back Navigation

The back navigation must not restore a column that was previously closed with the Close icon  .

Example: The user closes the third column by clicking the Close icon   in the upper-right corner. If the user then navigates back (UI or browser), the second column should close.

Using 'Close' in combination with back navigation
Using 'Close' in combination with back navigation

3 Columns in Size M

To offer a desktop-like experience in size M, the flexible column layout displays either the first and second or the second and third column. The user can switch between these views by using the layout arrow on the left or right side of the flexible column layout. Note: This behavior is only intended for size M. Do not use it for sizes L or XL.

3-column interaction in size M
3-column interaction in size M

Letterboxing

Do not use letterboxing in combination with the flexible column layout, as it will reduce the size of the usable screen area.

Do
Proper use of usable screen area
Proper use of usable screen area
Don't
Improper use of usable screen area with letterboxing
Improper use of usable screen area with letterboxing

Full Screen Navigation

After switching a column to full screen mode, selecting the Back icon exits the full screen mode.

If the screen is in full screen mode, and the user navigates forward, also show the next column in full screen mode. If the user navigates backward, go back in full screen mode until the point where the user initially switched to full screen. If the user then clicks Back again, return to the multi-column mode.

Using full screen mode in combination with navigation
Using full screen mode in combination with navigation

Footer Toolbar

Each column of the flexible column layout can have its own footer toolbar. There is no overall footer toolbar that spans several columns.

Do
Give each column its own footer toolbar
Give each column its own footer toolbar
Don't
There is no overall footer toolbar spanning several columns
There is no overall footer toolbar spanning several columns

Overlapping Header

The flexible column layout can display multiple floorplans side-by-side. However, it is not designed for splitting a single floorplan into several columns. As a result, there is no overall header that spans several columns. If you need to show additional content within a floorplan, use the dynamic side content.

Do
Each column has its own header
Each column has its own header
Don't
There should be no overall header
There should be no overall header

Empty Details Column

Do not display an empty details column when using the flexible column layout. For example, if no items have been selected in the second column, do not show an empty third column.

Do
If no items are selected in the 2nd column, show only 2 columns
If no items are selected in the 2nd column, show only 2 columns
Don't
Do not show an empty 3rd column
Do not show an empty 3rd column

Usage After One or Several Pages

Some use cases require starting an application with one or more full screen pages. You can therefore start the flexible column layout after several full screen pages.

Using the flexible column layout after several (full screen) pages
Using the flexible column layout after several (full screen) pages

SAP Fiori Elements

The flexible column layout is available in SAP Fiori elements for scenarios that use draft handling. If you use draft handling, we strongly recommend using the SAP Fiori elements implementation, wherever possible. The implementation already includes the navigation and routing behavior, as well as the Close and Full Screen actions, for example. Starting the application with two columns is also supported by SAP Fiori elements.

Resources

Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.

Elements and Controls

Implementation