1. #1
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    23
    Vote Rating
    0
    reweiner is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha Premium Member
    Join Date
    May 2009
    Posts
    151
    Vote Rating
    9
    ZachG will become famous soon enough

      0  

    Default


    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"
    		}
    	]
    }

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    23
    Vote Rating
    0
    reweiner is on a distinguished road

      0  

    Default


    Thanks!

    I'll give it a try!!

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar