ExpandableText
<ui5-expandable-text>
| Since 2.6.0The ui5-expandable-text
component allows displaying a large body of text in a small space. It provides an "expand/collapse" functionality, which shows/hides potentially truncated text.
Usage
When to use:
- To accommodate long texts in limited space, for example in list items, table cell texts, or forms
When not to use:
- The content is critical for the user. In this case use short descriptions that can fit in
- Strive to provide short and meaningful texts to avoid excessive number of "Show More" links on the page
Responsive Behavior
On phones, if the component is configured to display the full text in a popover, the popover will appear in full screen.
ES6 Module Import
import "@ui5/webcomponents/dist/ExpandableText";
Basic Sample
Properties
text
maxCharacters
overflowMode
emptyIndicatorMode
Slots
No slots available for this component.
Events
No events available for this component.
Methods
No methods available for this component.
CSS Parts
No CSS parts available for this component.