Menu widget to be used as a list of item
LSD.Widget.Menu.List = new Class({
Includes: [
LSD.Widget.Menu,
LSD.Trait.List,
LSD.Trait.Accessibility,
LSD.Trait.Proxies
],
options: {
attributes: {
type: 'list'
},
layout: {
item: 'menu-list-item'
},
events: {
self: {
dominject: 'makeItems'
},
element: {
'mousedown:on(option)': function() {
this.listWidget.selectItem(this)
}
}
}
}
});
LSD.Widget.Menu.List.Option = new Class({
Includes: [
LSD.Widget.Paint,
LSD.Trait.Item.Stateful
],
options: {
tag: 'option'
}
});
LSD.Widget.Menu.List.Button = LSD.Widget.Menu.List.Li = LSD.Widget.Menu.List.Command = LSD.Widget.Menu.List.Option;