Carousel Layout Transformer
Date: 10. Oct 2016
With the releases of MatchPoint Snow 1.0.11 and 2.0.1 we introduced the Carousel Layout Transformer. This blog post describes the purpose and the functionality of it.
As all layout transformers the CarouselLayoutTransformer
can be used within a CompositeConfiguration
. It provides the possibility to display various content in a carousel such as important news, announcements or any other content provided by any DataProvider
. It allows to display information in an attractive way without taking up a lot of space. It is possible to use automatic or manual paging mode to switch between items displayed in carousel.
Carousel with Dots
navigation:
Carousel with Arrows
navigation:
Configuration Parameters
The following section describes the most important configuration parameters of the carousel layout transformer.
CarouselContainerHeight
– Allows to set the height of carousel container.NumberOfElements
– Specifies the number of elements to be displayed per slide.SpaceBetweenElements
– Describes the space between the elements on a slide.PagingInterval
– An integer that specifies how many seconds a slide will be displayed before switching to next one. If set to 0, no automatic switching will occur and the user can navigate manually by using one of the two navigation modes.NavigationMode
– There are two navigation modes which can be used to navigate between slides:Dots
andArrows
Dots
are displayed below the carousel and indicate which slide is currently visible. By clicking on aDot
the carousel will slide to the selected slide.Arrows
are displayed on left and right side of carousel and can be used to navigate one slide further or one slide back.
AnimationEasing
– Specifies easing used in the animation. There are five modes:linear
,swing
,easeInCubic
,easeOutCubic
andeaseInOutCubic
.AnimationSpeed
– Allows you to set the speed of the animation in seconds. Note: If you setPagingInterval
to a value different than 0, theAnimationSpeed
must be lower than that!CarouselTemplate
- Specifies how carousel elements looks like. You can writeHTML
by your self or use anItemTemplate
Template
- Here you can write the "container" for your carousel which is rendered initially. Basically this should at least be aHTML
element (div
,span
, etc.) which uses the selector defined in theRootElementSelector
. But you can also add a header, footer or whatever content you like here. The carousel content (CarouselTemplate
) is later "injected" into the element withJavaScript
RootElementSelector
- This is thejQuery/CSS
selector of theHTML
element where the carousel (CarouselTemplate
) should be injected.