-
20 Sep 2011 12:19 PM #1
Which control should I use in this scenario (tabs + option menu)
Which control should I use in this scenario (tabs + option menu)
Hi,
I'd like to create a panel with horizontal tabs.
On the tab, there will be a "down arrow" that will have options like "Edit, Delete tab, etc".
| Tab 1 (v) | Tab 2 (v) | (+)
________________________
Content of each tab
________________________
OBS: (v) -> "Edit | Delete | etc"
I haven't seen a functionality like this on the tab control. What should I use instead ? Toolbars ?
Thanks
-
20 Sep 2011 4:56 PM #2
If I remember right, you can supply HTML for the title of a tab. That could include the down button that when clicked shows your menu. The easier solution would be to have a toolbar on the tabs.
Code:{ xtype:"tabpanel", defaults:{ dockedItems:[ { xtype:"toolbar", dock:"top", items:[ { text:"Edit" }, { text:"Delete" }, { text:"etc" } ] } ] }, items:[ { html:"First Tab" }, { html:"Second Tab" }, { html:"etc Tab" } ] }
-
20 Sep 2011 5:53 PM #3


Reply With Quote