Search code examples
javascriptbuttonmenumenuitemextjs3

extjs 3 - change menuitems order in menu of a button


I want to change order of the menu items of menu in a button. For example, I have a menu like following:

menu1
menu2
menu3
menuA

I add them in this order (menuA, menu3, menu2, menu1). Now i want to move menuA to top (before menu 1) like following:

menuA
menu1
menu2
menu3

Any idea/suggestion on how to do this?

Thanks for help in advance.


Solution

  • I guess there is no way to reorder the menu items so for now i just add the menu items in my required order instead of reordering them later.