Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
menuseparator config
menuseparator config
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:
Ext.ComponentMgr.registerType('menuseparator', Ext.menu.Separator);
but it doesn't look like ext respects xtypes when creating menu items. What's the best way to work around this?
Sencha User
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.
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.
[solved] menuseparator config
[solved] menuseparator config
it was easy:
<menu>
<items>
<button text="A button" />
<string>-</string>
<button text="Another button" />
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us