PDA

View Full Version : Ext.menu.Item should allow for defaultType if menu : [] exists



jay@moduscreate.com
1 Jul 2009, 5:45 AM
I realize that it's not a container, but it would be nice to be able to do this.

Condor
1 Jul 2009, 6:00 AM
So you prefer:

defaultType: '...',
menu: [...]
over

menu: {
defaultType: '...',
items: [...]
}

I'm not convinced :s

jay@moduscreate.com
1 Jul 2009, 6:02 AM
it's just another convenience for the end developer. Many simply want to describe an array of objects instead of an object consisting of an array of objects.

make sense?

mystix
1 Jul 2009, 7:58 AM
-1 to @jay's request.

semantically, this


menu: {
defaultType: '...',
items: [...]
}

states very clearly (to me at least) that my menu is an object containing an array of items whose defaultType is xxx. (doesn't it just roll of the tongue)