20 Oct 2009 9:46 AM #1
I'm having problems creating a menu separator in a menu using config. It didn't look like Ext had an xtype registered for this so I did this:
but it doesn't look like ext respects xtypes when creating menu items. What's the best way to work around this?
20 Oct 2009 10:37 AM #2
I don't think 2.x supports menu xtypes. Does "-" not do what you need?
Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will add one of these by using "-" in you call to add() or in your items config rather than creating one directly.
20 Oct 2009 11:28 AM #3
maybe, but my config objects are created via DWR from objects created via xtream & xml. So they are java classes with properties, not simple strings.
20 Oct 2009 1:46 PM #4
[solved] menuseparator config
it was easy:
<button text="A button" />
<button text="Another button" />