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'));
            }
        }
    }

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi