I have added a new feature for defining submenus handlers for menu items from StoreMenu. Supposed each item from the StoreMenu need to have it’s own submenus. Then you can define the handler as
I hacked a client & server PHP programs for part of a demo. However, the notorious memory intensive PHP makes my server process swallowing so much memory (the size of sample data and lots of associative arrays) to a point that is impractical to run. So I decided to bite the bullet to port the server side into Python. Then it was fine until it hit me, “How is the PHP client going to talk to Python server side?” Read more
The StoreMenu is a dynamic menu using ExtJS Store class to retrieve and expand the menu items from the server side. It is a very useful utility class. For usage and technical detail, you can refer to the forum. However, there are a number of areas I think it can be improved which are
- menu item’s handler function should not necessary return from the server side.
- since it is extended from Ext.menu.Menu which should be also capable of adding buttons as well as loading & add menu items from the Store.
- related to no.2, if the StoreMenu handles both menu buttons & dynamic menu items, the users should be able to assign where (offset) dynamic items to expand in respective to the static items.
- Dis/Enable to load from Store every time when the menu is expanded.
In ExtJS samples, there are couple showing how to use the SearchField class. However, I need the search to be more selective, ie the search is performed on specific or combination of column fields. Read more