Components/Dialog
fd-dialog · 9 examples from SAP's documentation · Back to the gallery
About
The dialog component is a container that appears in response to an action made by the user. It interrupts the app’s current process to prompt the user for either information or a confirmation, which requires them to make a decision before the process can continue. Dialog displays in a fixed position and is activated by adding the \
Default
The default dialog component displays a container comprising a header, title, and subheader; followed by a body (content area), loader, footer and action buttons. The container also features a resize handle in the bottom-right corner of the footer, see resizable dialog below for more information.
#Horizontal padding
These modifier classes are used to display horizontal padding for dialog's header, subheader, body and footer in various sizes. | rem | min-width | max width | modifier class | | ---- | ---------- | ---------- | ----------- | | 0 | _n/a_ | _n/a_ | \
Resizable
Dialog can also be displayed with a resize handle by adding a span element with a \
Draggable
Dialog can be draggable, enabling the user to drag the container around with their cursor on a desktop screen. | Modifier class | Modification | | ----------------: | :------------ | | \
Selectable
The selectable dialog displays list items in the content area that can be selected. Users can search items from the list, select one or more items, and finalize their choice by selecting the _Select_ button. To display the selectable dialog, include the \
-
List item 1
-
List item 2
-
List item 3
-
List item 4
-
List item 5
-
List item 6
Loading
Dialog can display a busy indicator that signals to the user that data is loading. To display a busy indicator in the content area, add the `fd-busy-indicator--l` to the `fd-dialog__loader` container element. Although the busy indicator is large in this example, you can choose a smaller size. See **Busy Indicator** for more sizes.
HorizontalForm
Horizontal Form displays all the components aligned horizontally. It is created by positioning the `fd-form-label` class and the `fd-input` class in the same row.
VerticalForm
Verical Form displays all the components aligned vertically. It is created by positioning the `fd-form-label` class above the `fd-input` class in seperate rows.
TabletAndHybridDeviceSpecification
To properly support resizing for all input methods, the optional resize handle is context-dependent. Depending on the device, a full screen button is also shown for touch interaction.
Tablet without mouse attached
sap-icon--full-screen)Tablet with mouse attached
sap-icon--full-screen)Hybrid device
sap-icon--full-screen)Full screen
sap-icon--exitfullscreen)