清除转盘的所有元素 - Sencha [英] Clear all elements of a carousel - Sencha
本文介绍了清除转盘的所有元素 - Sencha的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
carousel = new Ext.Carousel( {
全屏:true,
默认值:{
cls:'carousel-item'
},
items:[{
id:'tab- 1',
html:'',
cls:'card card1'
},{
id:'tab-2',
html:'& p>点击< / p>'下方指标的两边,
cls:'card card2'
},{
id:'tab-3',
html :'卡#3',
cls:'card card3'
}]
});
非常感谢
解决方案
您可以使用一行代码清除轮播中的所有组件:
carousel.removeAll ();
希望这有帮助。
Dows anybody knows how to delete all elements on a carousel in sencha???
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
解决方案
You can clear all the components inside your carousel with just a line of code:
carousel.removeAll();
Hope this helps.
这篇关于清除转盘的所有元素 - Sencha的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文