MediaGallery
<ui5-media-gallery> | Since 1.1.0The ui5-media-gallery component allows the user to browse through multimedia items. Currently,
the supported items are images and videos. The items should be defined using the ui5-media-gallery-item
component.
The items are initially displayed as thumbnails. When the user selects a thumbnail, the corresponding item is displayed in larger size.
The component is responsive by default and adjusts the position of the menu with respect to viewport size, but the application is able to further customize the layout via the provided API.
Keyboard Handling
The ui5-media-gallery provides advanced keyboard handling.
When the thumbnails menu is focused the following keyboard shortcuts allow the user to navigate through the thumbnail items:
- [Up] or [Down] - Navigates up and down the items
- [Home] - Navigates to first item
- [End] - Navigates to the last item
- [Space], [Enter] - Selects an item
ES6 Module Import
import "@ui5/webcomponents-fiori/dist/MediaGallery.js";
import "@ui5/webcomponents-fiori/dist/MediaGalleryItem.js";
Basic Sample
Properties
showAllThumbnails
interactiveDisplayArea
layout
menuHorizontalAlign
menuVerticalAlign
Slots
default
Events
selection-change
overflow-click
display-area-click
Methods
No methods available for this component.
CSS Parts
No CSS parts available for this component.
More Samples
Vertical Layout
The thumbnails and selected item are vertically placed. To enable this layout - set layout="Vertical".