Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Mülheim an der Ruhr, Germany
    Posts
    76
    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
    194
    Answers
    41
    Vote Rating
    8
    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
    76
    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