ember-cli-swiper icon indicating copy to clipboard operation
ember-cli-swiper copied to clipboard

Screen breakpoints for slidesPerView

Open GuzlejM opened this issue 5 years ago • 0 comments

Hello, I've been trying to find some solutions how to make slidesPerView change number of slides on different screens. I didn't find anything, It looks like I should have used //controller.

I created controller with same name as the component name and did this:


  1. Tried this import Controller from '@ember/controller';

export default class SwiperController extends Controller { myOptions: { parallax: true } }


  1. Tried this and this actually make sense import Controller from '@ember/controller';

export default class SwiperController extends Controller { } Controller.extend({ myOptions: { parallax: true } });


  1. And tried aswell this import Controller from '@ember/controller';

export default class SwiperController extends Controller { Controller.extend({ myOptions: { parallax: true } }); } With all 3 cases i tried to call {{swiper-container options=myOptions}} but it didn't do nothing. I'm not sure what I'm doing wrong any help would help, thank you.

Martin

PS: Love this addon thank you for creating it !

GuzlejM avatar Jan 19 '21 23:01 GuzlejM