Last Update: July 02, 2022

Platform: Web

Designers: Kathrin Fischer, Paul Hopkins, Anton Fischer

Image

Intro

The Action column pattern describes how we display item-level actions in Responsive Table rows.

Pattern Summary

Rationale

The Fiori Guidelines for Responsive Table recommend against adding a specific column for actions. However, we found that in a lot of our UIs, it’s desired to be able to trigger an action from a line item for various reasons:

Usage

Structure and Components

information
Make sure to set the sap.m.HBox displayInline property to true. Otherwise, it will mess with the column alignment.The spacing between buttons should be 0.5rem. In UI5, this can be achieved by applying CSS-Class sapUiTinyMarginBegin to buttons.
xml
<HBox displayInline="true"> <Button type="Transparent" text="Custom Action"/> <Button type="Transparent" icon="sap-icon://edit" tooltip="Edit" class="sapUiTinyMarginBegin"/> <Button type="Transparent" icon="sap-icon://decline" tooltip="Delete" class="sapUiTinyMarginBegin"/> </HBox>

Behavior & Interaction

Responsiveness and Adaptiveness

The action column should be set to high priority and will thus only go into pop-in only on very small screens. Once in pop-in display, the buttons are left-aligned. Also, don't show a column label.

Application-specific examples (usage in SF modules)

In the Onboarding Dashboard - New Hire Details UI the user finds in the first tap the data collection table with a column for direct actions.

Image
New Hire Detail Page.PNG

Accessibility

We don't display a visible column header, but we do need one for screen readers and valid code structure. In order to achieve both, we add a column header label (“Actions”) and set it to pseudo-invisible.

information
In UI5, this can be achieved by applying class sapUiPseudoInvisibleText to the column header label.

Examples

Time Admin Workbench – Work Schedules.png

Time Admin Workbench – Work Schedules

Employee Central – Manage Pending Hires.png

Employee Central – Manage Pending Hires

Recruiting – Forms.png

Recruiting – Forms

Resources