1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default Unanswered: Add my nested list into my navigation's view

    Unanswered: Add my nested list into my navigation's view


    Hi,

    I have a navigation's view and i need to include my nested list into my card :

    Code:
    {
                            title : _strings_forward[dmngConfig.device[0].LanguageID],
                            id    : 'fileselectview',
                            layout: 'card',
                            items :
                                [
                                    // --- Toolbar ---
                                    {
                                        xtype : 'toolbar',
                                        docked: 'top',
                                        ui    : 'light',
                                        title :  _strings_forward[dmngConfig.device[0].LanguageID],
                                        items :
                                            [{
                                                xtype  : 'button',
                                                ui     : 'action',
                                                text   : _strings_button_back[dmngConfig.device[0].LanguageID],
                                                handler: function()
                                                {
                                                    //console.log("BACK button");
    
    
                                                }
                                            }]
                                    },
                                    // --- Filesystem selection ---
                                    {
                                        title    : _strings_forward[dmngConfig.device[0].LanguageID],
                                        xtype    : 'nestedList',
                                        itemTpl  : FileSystemTpl,
                                        store    : FileSystemStore,
                                        flex     : 1,
                                        listeners:
                                        {
                                            leafitemtap: function(nestedList, list, index, target, record)
                                            {
                                                var detailCard = nestedList.getDetailCard();
                                                console.log('You selected: ' + record.get('text'));
                                            }
                                        }
                                    }
                                ]
                        }
    But i have the following error :

    Code:
    Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: widget.nestedList
    So i think, the xtype is not correct ? what is the right one or what is wrong in my code ?

    Thanks in advance of your reply.

    Regards

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default


    Hi,

    I have found this link : http://docs.sencha.com/touch/2-0/#!/guide/first_app

    It provide a code with the xtype expected :

    Code:
    {
        xtype: 'nestedlist',
        //all other configurations as above
    
    
        detailCard: 
       {
            xtype: 'panel',
            scrollable: true,
            styleHtmlContent: true
        },
    
    
        listeners: 
        {
            itemtap: function(nestedList, list, index, element, post) 
            {
                this.getDetailCard().setHtml(post.get('content'));
            }
        }
    }

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar