Clear all carousel items - Sencha

Dauz knows how to remove all elements on a carousel in senches.

carousel = new Ext.Carousel({ fullscreen: true, defaults: { cls: 'carousel-item' }, items: [{ id:'tab-1', html: '', cls: 'card card1' },{ id:'tab-2', html: '<p>Clicking on either side of the indicators below</p>', cls: 'card card2' },{ id:'tab-3', html: 'Card #3', cls: 'card card3' }] }); 

thanks a lot

+4
source share
1 answer

You can clear all the components inside your carousel with just a line of code:

 carousel.removeAll(); 

Hope this helps.

+5
source

All Articles