NotificationListItem
<ui5-li-notification> | Since 1.0.0The ui5-li-notification is a type of list item, meant to display notifications.
The component has a rich set of various properties that allows the user to set avatar, menu, titleText, descriptive content
and footnotes to fully describe a notification.
The user can:
- display a
Closebutton - can control whether the
titleTextanddescriptionshould wrap or truncate and display aShowMorebutton to switch between less and more information - add actions by using the
ui5-menucomponent
Note: Adding custom actions by using the ui5-notification-action component is deprecated as of version 2.0!
Usage
The component should be used inside a ui5-notification-list.
Keyboard Handling
Basic Navigation
The user can use the following keyboard shortcuts to perform actions (such as select, delete):
- [Enter] - select an item (trigger "item-click" event)
- [Delete] - close an item (trigger "item-close" event)
Fast Navigation
This component provides a fast navigation using the following keyboard shortcuts:
- [Shift] + [Enter] - 'More'/'Less' link will be triggered
- [Shift] + [F10] - 'Menu' (Actions) button will be triggered (clicked)
ES6 Module Import
import "@ui5/webcomponents-fiori/dist/NotificationListItem.js";