Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Mülheim an der Ruhr, Germany
    Posts
    79
    Answers
    5
    Vote Rating
    0
    blade226 is on a distinguished road

      0  

    Post Answered: Newbie question: Use a TreeStore as menu

    Answered: Newbie question: Use a TreeStore as menu


    Hello,

    i build a small Site (Viewport). In west is a treepanel und in center a tabpanel. Now i want to click on a part of the treepanel and a new tab should be open.
    I searched for a solution in sencha examples, but i don't get it right.

    Code:

    var west = Ext.create ("xwest",{
    region: "west",
    items : [ {
    xtype : "panel",
    region : "west",
    width : 200,
    items :[

    {
    xtype : "treepanel",
    store: treestore
    }]

    }]
    });

    var mitte = Ext.create ("xmitte",{
    region: "center",
    items : [{
    xtype : "tabpanel",
    id : 'tabs',
    activeTab: 0,
    items : [

    {
    title : "Diagramm",
    height : "100%",
    width : "100%",
    closable: true,
    items: [diagr]

    },
    {
    title : "Daten",
    closable: true,
    items: [artikelGrid]
    }
    ]
    }


    ]
    });

    Please: I need help

    THX

  2. Try this...
    PHP Code:
    {
            
    xtype 'treepanel',
            
    store treestore,
            
    listeners : {
                
    'select' : function(rowmodelrecord) {
                    
    mitte.getComponent('tabs').add({title record.get('Name'), itemId record.getId()});
                }
             }            


  3. #2
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    203
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    Try this...
    PHP Code:
    {
            
    xtype 'treepanel',
            
    store treestore,
            
    listeners : {
                
    'select' : function(rowmodelrecord) {
                    
    mitte.getComponent('tabs').add({title record.get('Name'), itemId record.getId()});
                }
             }            


  4. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Mülheim an der Ruhr, Germany
    Posts
    79
    Answers
    5
    Vote Rating
    0
    blade226 is on a distinguished road

      0  

    Default


    Sorry,
    I've been looking forward to early



    Now, on every Text/Point a new tab opens. I want to use it as a menu.
    For Example:
    Click on: Beschreibung -> a tab named "Beschreibung" with a specific content opens. The root directory of the treepanel may not open a tab.

Thread Participants: 1

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