122
Views
2
Comments
Using Slick Carousel
Question

Hi,

I am trying to use Slick for Carousel image display. However, it seems not working with ListRecords? 

2020-08-26 14-54-58
Raghuram kamath

Since there is a span element now for list records the styles are not applied.


You need to tweak the Js to look within the span or Looks for some Class within the outer parent.


I am Assuming you are quite experienced JavaScript developer based on your previous posts. 

2018-10-03 14-20-17
QIUYAN LI

coder kamath wrote:

Since there is a span element now for list records the styles are not applied.


You need to tweak the Js to look within the span or Looks for some Class within the outer parent.


I am Assuming you are quite experienced JavaScript developer based on your previous posts. 

Hi,

thank you for your reply. 

I managed to get it by changing parts of the JavaScript (inside reinit and buildout functions) :

Example,

From: _$.slides = _$.slides.children(_options.slide + ':not(.slick-cloned)').addClass('slick-slide')

To: _$.slides = _$.slides.children(_options.slide + ':not(.slick-cloned)').children('div').addClass('slick-slide')


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.