Intro

information
Do not use the object header control for the object page floorplan. For object pages, always use the snapping header control.

The object header usually represents an object instance. As such, it contains the most important information a user needs to see in order to understand what the object is about and what its status is. It is the first control on a page dedicated to a single object instance, usually the object view or flat object view.

The control can also be used as the header of other pages, such as a full screen. In that case, the object header contains the most important aggregated information of the items that are listed below.

Usage

Use the object header:

Do not use the object header:

Responsiveness

The object header generally adjusts to different screen sizes. To achieve this, there is a built-in rule set that defines which content wraps or truncates when necessary, and how attributes and status texts are arranged depending on the screen size.

The object header has two flags that influence its appearance and resizing behavior: Responsive and FullScreenOptimized.

Object header – Split-screen layout (Responsive = true, FullScreenOptimized = false), Picture

Object header – Split-screen layout (Responsive = true, FullScreenOptimized = false)

Responsive

As of SAPUI5 1.28, the app team should generally set the Responsive flag to ‘true’. In this case, the attributes are the first set of entries in the header, followed by the second set of statuses. The on-screen distribution differs from previous SAPUI5 versions. Even if there are many attributes and only a few statuses, use of the space is now optimized as the entries fill the respective columns equally.

Object header – Smartphone size (Responsive = true, FullScreenOptimized = false), Picture

Object header – Smartphone size (Responsive = true, FullScreenOptimized = false)

Full Screen Optimized

The second attribute, FullScreenOptimized, should be activated when the header makes full use of the screen width and is not used in a split-screen layout.

Object header – Full screen optimized (responsive = true, FullScreenOptimized = true), Picture

Object header – Full screen optimized (responsive = true, FullScreenOptimized = true)

Attribute/Status Distribution

The following table shows how the attributes are distributed automatically when the Responsive flag is set to ‘true’ on various screen sizes.

<div> <div>Screen Size</div> <div>2 Attributes</div> <div>3 Attributes</div> <div>4 Attributes</div> <div>5+ Attributes</div> </div> <div> <div>Desktop (full screen)</div> <div>Next to the title area (1 column of 1-2 attributes)</div> <div>Next to the title area (1 column of 3 attributes)</div> <div>Underneath the title area (4 columns split by 1/1/1/1)</div> <div>Underneath the title area (4 columns split by 2/1/1/1)</div> </div> <div> <div>Desktop (split screen layout)</div> <div>Underneath (2 columns split by 1/1</div> <div>Underneath (2 columns split by 2/1)</div> <div>Underneath (2 columns split by 2/2)</div> <div>Underneath (3 columns split by 2/2/1)</div> </div> <div> <div>Tablet (full screen – landscape)</div> <div>Underneath (2 columns split by 1/1)</div> <div>Underneath (3 columns split by 1/1/1)</div> <div>Underneath (3 columns split by 2/1/1)</div> <div>Underneath (3 columns split by 2/2/1)</div> </div> <div> <div>Tablet (split screen layout) or Tablet (full screen – portrait)</div> <div>Underneath (2 columns split by 1/1)</div> <div>Underneath (2 columns split by 2/1)</div> <div>Underneath (2 columns split by 2/2)</div> <div>Underneath (2 columns split by 3/2)</div> </div> <div> <div>Smartphone</div> <div>Underneath (1 column of 1-2 attributes)</div> <div>Underneath (1 column of 3 attributes)</div> <div>Underneath (1 column of 4 attributes)</div> <div>Underneath (1 column of 5+ attributes)</div> </div>

Prior to SAPUI5 1.28 (Responsive Set to ‘False’)

The Responsive flag is deactivated by default in apps that were built before SAPUI5 1.28. As mentioned above, this mainly impacts the attributes and status arrangement. If the Responsive flag is turned off, all attributes are left-aligned in the object header and all statuses are right-aligned, regardless of their individual number.
The object header still reacts correctly to resizing, but does not make optimal use of the space available.

For example, three attributes and one status with Responsive and FullScreenOptimized both set to ‘false’ results in two columns: the first (left) column contains three attributes, and the other column (right) has one status. Altogether, this is three rows in height, whereas the same number of entries on a desktop full screen with the two flags set to ‘true’ results in a height of just one row (spread over four columns).

Components

Title

  • The object header has a mandatory title that serves as the key identifier of the object instance (property: title).
  • Long titles wrap once before they truncate on the second line.
  • A title can be actionable (property: titleActionable), in which case, it looks like a link and triggers an event, which usually results in a quick view.
  • An additional icon or image that identifies the object (property: icon) can be shown in front of the title. The icon or image can also be set to actionable (property: IconActionable).
  • Additionally, the title can show a title selector (which is visualized like a menu). It is mainly used to provide navigation targets, allowing the object to be opened in a different app.

Object header (Responsive=false) – Title not actionable, Picture

Object header (Responsive=false) – Title not actionable

Object header (Responsive=false) – Title actionable, Picture

Object header (Responsive=false) – Title actionable

Object header (Responsive=false) – Title selector, Picture

Object header (Responsive=false) – Title selector

Object Number

  • The object number contains the key attribute of the object instance.
  • The object number consists of text that represents the key attribute of an object, usually a number (property: number) and its unit (property: numberUnit). The object number has a semantic color (property: state). The unit inherits the semantic color of its number.
  • As usual in SAP Fiori, the semantic colors available are negative (property: error), critical (property: warning), positive (property: success), and neutral (property: none).

Object header (Responsive=false) – Negative object number, Picture

Object header (Responsive=false) – Negative object number

Object Attribute

  • The object header can contain 0 to n attributes (property: objectAttribute).
  • The attributes are listed first in the list of attributes in the object header.
  • Attributes can be text (property: text) or actionable (property: actionable), in which case, they are rendered similar to links.

Object header (Responsive=false) – Attribute active, Picture

Object header (Responsive=false) – Attribute active

Object Status

  • The object header can contain a list of 0 to n object statuses (property: objectStatus).
  • The statuses are listed as the second set of attributes in the object header.
  • The status has a semantic color.
  • Statuses can be text or icons. A combination of the two is technically also possible, in which case, the icon is placed in front of the text. We generally recommend that you use text only (see guidelines below).
  • A progress indicator may also be shown as a status. If used, the progress indicator should be the last item in the list of statuses.

Object header (Responsive=true) – Favorite, three object attributes, and one object status, Picture

Object header (Responsive=true) – Favorite, three object attributes, and one object status

Flag and Favorite

  • Objects can be shown flagged and marked as favorites. The object header provides flags for both (properties: markFavorite, markFlagged).
  • To show them in the object header, you also need to activate the respective flag (property: showMarkers).
  • When they are used and shown, they appear directly behind the title.

Object header (Responsive=false) – Flag, favorite, two object attributes, and two object statuses, Picture

Object header (Responsive=false) – Flag, favorite, two object attributes, and two object statuses

Intro

  • As mentioned above, another component from the early days of SAP Fiori called the intro (property: intro) is available.
  • It is now shown directly below the title in a smaller font size.
  • The intro can call an event if it is set to actionable (property: introActionable).
  • Previously, the intro appeared above the title, and was used to indicate the origin of an object (for example, Forwarded by…, On behalf of …). It now tends to be used as a short subtitle.

Object header (Responsive=true) – Intro text used as subtitle, Picture

Object header (Responsive=true) – Intro text used as subtitle

Object header (Responsive=false) – Intro text, Picture

Object header (Responsive=false) – Intro text

Condensed

  • The object header provides a condensed flag for cases in which it is used as a page header with little information (property: condensed).
  • When turned on, the object header displays only the title, object number, and one attribute.

Object header – Condensed mode, Picture

Object header – Condensed mode

Guidelines

Settings

Title

Object Number

Object Attribute

Object Status

Intro

Master/Details

Resources

Elements and Controls

Implementation