create Scrolling container
Hi,
is there any documentation in creating scrolling container, horizontal scroll where we can add any no of other component inside it
let me know
Thanks!
Hi,
is there any documentation in creating scrolling container, horizontal scroll where we can add any no of other component inside it
let me know
Thanks!
Hi @tatrived ,
You can use the carousel component. It allows you to include various components within each item. However, it is important to ensure proper handling of the UI. Typically, image, video, or teaser components are used in carousel items. If you intend to add miscellaneous or non-standard components, it is crucial to handle their UI appropriately and ensure compatibility with all associated components.
<sly
data-sly-resource="${'carousel' @ resourceType='myproject/components/carousel'}">
<sly data-sly-repeat="${carousel.items}" data-sly-unwrap>
<div class="carousel-item">
<div class="carousel-content">
<!-- PARSYS for including various components -->
<div class="carousel-parsys" data-sly-resource="${'carousel-parsys' @ resourceType='wcm/foundation/components/parsys'}"></div>
</div>
</div>
</sly>
</sly>
In the above code, we have a carousel component that iterates through a list of items defined in the carousel resource. Within each carousel item, there is a carousel-content container where you can include various components using a parsys. The parsys is represented by the carousel-parsys resource type.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.