Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

can update the carousel grid values dynamically? #67

Open
mohsaeeed opened this issue Dec 8, 2017 · 0 comments
Open

can update the carousel grid values dynamically? #67

mohsaeeed opened this issue Dec 8, 2017 · 0 comments

Comments

@mohsaeeed
Copy link

Hi,

I would like the carousel to show 5 items on a large screen but if the array is less than 5 then I would like to update the carousel large screen grid to show the array length instead.
I currently have it setup as follows:

ngOnInit() {
    this.getFeeds();
    this.feedCarouselItems = this.feeds;
    this.feedCarousel = {
      grid: this.grid, //<-- this.grid is updated after calling the service and getting the list 
      slide: 2,
      speed: 400,
      animation: 'lazy',
      point: {
        visible: false
      },
      load: 2,
      touch: true,
      easing: 'ease'
    }
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant