Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

extjs 4 - how to add items into panel header?

Tags:

extjs

extjs4

I want to add Ext.button.Split into panel's header instead of title. It must be something like switcher of a panel's content and title of the same panel together. Is there any option in extjs 4 to do that? Or is there better solution instead of Split button? Unfortunately, switcher in panel header is the key requirement, so it must be placed there.

like image 735
ddd Avatar asked Dec 06 '22 23:12

ddd


1 Answers

Below works for me ExtJs 4.2.2

{
            xtype: 'panel',
            ......

            header: {
                titlePosition: 0,
                items: [ 
                    {
                        xtype: 'splitbutton',

                    }
                ]
            }
}
like image 69
Peter Li Avatar answered Jan 25 '23 08:01

Peter Li