Patterns/Multi Input
fd-form-label · 7 examples from SAP's documentation · Back to the gallery
About
Multi Input allows users to enter multiple values which are displayed as a tokens. It provides an editable input field for filtering the list, and a dropdown menu with a list of the available options. If the entries are not validated by the application, users can also enter custom values.
**Use the multi input if:** - You want the user to select multiple ranges. - The dataset to choose from is expected to increase over time. - You need to provide the value help option to help users select or search multiple business objects. - You want to enable users to add custom values. **Use the multi input if:** - You want the user to select multiple ranges. - The dataset to choose from is expected to increase over time. - You need to provide the value help option to help users select or search multiple business objects. - You want to enable users to add custom values.
AsFormItem
Note that the popover body width is restricted to a max of 37.5rem to avoid readability issues in large-width popovers. Applications are free to override this in their custom styles if needed and own any readability issues arising from this override.
-
Apple
-
Orange
-
Banana
-
Kiwi
-
Lemon
Grouping
In cases where the list items need to be categorized into groups, it is possible to add headers for each category as seen below.
Fruits
-
Apple
-
Orange
-
Banana
-
Kiwi
-
Lemon
-
Onion
-
Tomato
MatchPopoverBodySize
The default length size of the popover body is often different from the text length. The body length can be adjusted to match the text length by adding the \
-
Apple
-
Orange
-
Banana
-
Kiwi
-
Lemon
MultiInputModes
To disable a \
Semantic
For a complete list of states supported by the \
MobileMode
For mobile devices, or tablets, multi input component should be displayed in fullscreen mode. So instead of using popover and dropdown, it should be wrapped in \
Filtering
The user can filter selectable options by typing in the input. A button with the text "Show All" should be displayed, that when clicked, will clear the text in the input and show all options in the list.
-
Apple A2
-
Orange A1
-
Banana A3
-
Apple A1
-
Orange A2
-
Banana A3