shinobukawano / Ext.ux.AccordionList

Accordion List Component for Sencha Touch 2
http://kawanoshinobu.com/public/demo/accordionlist/
50 stars 28 forks source link

How can i set emptyText in accordion list #22

Open dibishks opened 11 years ago

dibishks commented 11 years ago

Hi,

Am using ur accordion list in my project, its working great..But small problem with set emptyText when there is no data to display in list i tried this way, but its not showing empty text..Can u guide me. Thanks in advance { xtype: 'accordionlist', store: Ext.create('WinReo.store.Task'), flex: 1, cls:'testlistvalue', emptyText:'No Property to Show', listConfig: { plugins: [ { xclass: 'Ext.plugin.ListPaging', autoPaging: true, noMoreRecordsText: 'No More Properties'

                    }

                ]
            }
jase88 commented 8 years ago

Sorry late answer, but if anybody still interested. Define emptyText property on listConfig like:

Ext.define('myTreeList', {
    extend: 'Ext.ux.AccordionList',
    xtype: 'mytreelist',

    config: {
        ...
        listConfig: {
            emptyText: 'empty list :('
        }
    }
});