0
votes

I created border layout and added a tree panel to west region and a tab panel to center region.

I want to know how can I add another tab in tab panel for tree node click?

2

2 Answers

2
votes

This example will show you how to add tabs dynamically.
You can refer to this question for adding click actions to the nodes of the tree.

0
votes
var formPanel = new Ext.form.FormPanel({bla bla bla });
var tabPanel = ....  ;
tabPanel.add(formPanel);
tabPanel.doLayout();

This little snippet will allow you to add panels to your tab panel. The suggestion above should help you handle the click events for your tree panel.