1. #1
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Lightbulb Disclosure buttons not shows on lists

    Disclosure buttons not shows on lists


    Here is sample code same as from ST2 documentation. When enabled disclosure buttons in configuration (disclosure: true) but this not works.

    Code:
    Ext.Loader.setConfig({
        enabled: true
    });
    
    
    Ext.application({
        name: 'App',
        
        launch: function(){
            Ext.define('Contact', {
                    extend: 'Ext.data.Model',
                    config: {
                        fields: ['firstName', 'lastName']
                    }
                });
    
    
                var store = Ext.create('Ext.data.Store', {
                    model: 'Contact',
                    sorters: 'lastName',
    
    
                    getGroupString: function(record) {
                    return record.get('lastName')[0];
                    },
    
    
                    data: [
                        {firstName: 'Tommy',   lastName: 'Maintz'},
                        {firstName: 'Rob',     lastName: 'Dougan'},
                        {firstName: 'Ed',      lastName: 'Spencer'},
                        {firstName: 'Jamie',   lastName: 'Avins'},
                        {firstName: 'Aaron',   lastName: 'Conran'},
                        {firstName: 'Dave',    lastName: 'Kaneda'}
                    ]
                });
            
            Ext.create('Ext.Panel', {
                fullscreen: true,
                layout: 'fit',
                
                items: [
                    {
                        xtype: 'list',
                        itemTpl: '<div class="contact">{firstName} <strong>{lastName}</strong></div>',
                        store: store,
                        disclosure: true
                    }
                ]
            });
        }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Try onItemDisclosure instead of disclosure
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    Wow! Thanks, it works!

Thread Participants: 1