Results 1 to 3 of 3

Thread: Disclosure buttons not shows on lists

  1. #1
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    176
    Vote Rating
    20
      0  

    Lightbulb 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Try onItemDisclosure instead of disclosure
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    176
    Vote Rating
    20
      0  

    Default

    Wow! Thanks, it works!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •