【问题标题】:Clear all elements of a carousel - Sencha清除轮播的所有元素 - Sencha
【发布时间】:2011-05-31 15:42:36
【问题描述】:

有人知道如何删除 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'
        }]
});

非常感谢

【问题讨论】:

    标签: extjs carousel items


    【解决方案1】:

    您只需一行代码即可清除轮播中的所有组件:

    carousel.removeAll();
    

    希望这会有所帮助。

    【讨论】:

    • 不客气,何塞。如果您正在学习 Sencha Touch,我建议您访问我在我的网站上写的免费课程andreacammarata.com/en/corsi/sencha-touch
    • 非常感谢,我正在寻找它。如果它不困难,你能帮忙吗? stackoverflow.com/questions/6190981/…
    • 是用意大利语写的,但是您可以通过页面顶部的标志来翻译它。我很喜欢用母语写它,但我真的需要更少的时间来做。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多