The Carousel allows the user to browse through a set of items.
The component is mostly used for showing a gallery of images, but can hold any other HTML element.
There are several ways to perform navigation:
on desktop - the user can navigate using the navigation arrows or with keyboard shortcuts.
on touch devices - the user can navigate using the navigation arrows (always visible) or can use swipe gestures.
This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].
In order to use this functionality, you need to import the following module:
Defines the number of items per page depending on the carousel width. - 'S' for screens smaller than 600 pixels. - 'M' for screens greater than or equal to 600 pixels and smaller than 1024 pixels. - 'L' for screens greater than or equal to 1024 pixels and smaller than 1440 pixels. - 'XL' for screens greater than or equal to 1440 pixels. One item per page is shown by default.
Defines the visibility of the navigation arrows. If set to true the navigation arrows will be hidden. Note: The navigation arrows are always displayed on touch devices.
Defines the style of the page indicator. Available options are: - Default - The page indicator will be visualized as dots if there are fewer than 9 pages. If there are more pages, the page indicator will switch to displaying the current page and the total number of pages. (e.g. X of Y) - Numeric - The page indicator will display the current page and the total number of pages. (e.g. X of Y)
Defines the position of arrows. Available options are: - Content - the arrows are placed on the sides of the current page. - Navigation - the arrows are placed on the sides of the page indicator.
Fired whenever the page changes due to user interaction, when the user clicks on the navigation arrows or while resizing, based on the items-per-page property.
When the last page is reached, pressing "Forward" will navigate to the start.
When the first page is reached, pressing "Backward" will navigate to the last page.
When arrowsPlacement is set to "Content", the arrows are placed on the sides of the current page.
When arrowsPlacement is set to "Navigation", the arrows are placed on the sides of the page indicator.