Learn Extjs5 with me (10--using the MVVM attribute to control the menu style)
The menu style is many, how to be able to switch flexibly is a problem. when using the standard menu, there are two buttons at the front of the menu that you can switch to the tree menu and the button menu.
in the display area of the tree menu, you can switch to the standard menu, as well as the folding menu.
after switching to the button menu:
The Toggle menu switches to the standard menu and the tree menu and needs to be manipulated in the settings.
Here are some ways to see how this is achieved. Because of the complexity of internal processing, I will draw a large map, the source code will be published later in the CSDN.
now look at the run diagram of the control that changes the menu style inside.
This process is more complex, there is not understand can download the source of their own watch. Source can be found in my resources, or directly click to open the linkhave any comments or construction, please keep abreast message.