File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ type ItemsInfo = {
8484 * - The items you want to display need to be visible at the same time.
8585 * - The items you want to display are uniform and very similar.
8686 *
87+ * ### Hidden Items
88+ *
89+ * Carousel items can be conditionally hidden by adding the `hidden` attribute to any child element.
90+ * Hidden items are automatically excluded from the carousel navigation and will not be displayed or counted in pagination.
91+ * This allows for dynamic showing/hiding of carousel items without affecting the overall carousel behavior.
92+ *
8793 * ### Keyboard Handling
8894 *
8995 * #### Basic Navigation
@@ -307,6 +313,9 @@ class Carousel extends UI5Element {
307313
308314 /**
309315 * Defines the content of the component.
316+ *
317+ * **Note:** Items with the `hidden` attribute will be automatically excluded from carousel navigation,
318+ * page calculations, and will not be displayed or accessible via keyboard navigation.
310319 * @public
311320 */
312321 @slot ( { "default" : true , type : HTMLElement , individualSlots : true } )
You can’t perform that action at this time.
0 commit comments